Begin converting deprecated mysql calls to PDO