Remove mysql_* functions

PHP has deprecated mysql_* functions in PHP 5.5 in favor of using mysqli or PDO. Since we are using Silex and Symfony components, moving to Doctrine (which is built on top of PDO) is the best choice.

Completes #2.