Fixing issue phalcon/incubator#22 and other improvement of Phalcon\Session\Adapter\Database

SQL-queries were changed to prevent possible syntax errors and injections.
Sessions garbage collector callback was implemented.
The source code was formatted with php-cs-fixer.