Updating Database service class to PDO mysql instead of mysql_* functions