public function move($up)
    {
        $table = $this->getTableName();

        if ($up && ($this->position > 1)) {
            $this->position--;
            $this->app['redbean']->exec('UPDATE '.$table.' SET position = position + 1 WHERE position = ?', [$this->position]);
        } else if (!$up && ($this->position < $this->app['redbean']->count($table))) {
            $this->position++;
            $this->app['redbean']->exec('UPDATE '.$table.' SET position = position - 1 WHERE position = ?', [$this->position]);
        }
    }