Fixing more bugs in Phalcon\Db