Fixing issue phalcon/incubator#22 and other improvements

Fixing issue phalcon/incubator#22 and other improvements in 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.