diff --git a/modules/t/test-genome-DBs/circ/core/SQLite/table.sql b/modules/t/test-genome-DBs/circ/core/SQLite/table.sql
index cefd02c3924e537fade0f7f4232d53d7288ac864..f0bd023d81b1a9838f742dd3ead5117e599de72e 100644
--- a/modules/t/test-genome-DBs/circ/core/SQLite/table.sql
+++ b/modules/t/test-genome-DBs/circ/core/SQLite/table.sql
@@ -1,1002 +1,1002 @@
 -- 
 -- Created by SQL::Translator::Producer::SQLite
--- Created on Thu Jun 28 16:50:47 2018
+-- Created on Wed Sep 26 12:06:22 2018
 -- 
 
 BEGIN TRANSACTION;
 
 --
--- Table: alt_allele
+-- Table: "alt_allele"
 --
-CREATE TABLE alt_allele (
-  alt_allele_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  alt_allele_group_id integer NOT NULL,
-  gene_id integer NOT NULL
+CREATE TABLE "alt_allele" (
+  "alt_allele_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "alt_allele_group_id" integer NOT NULL,
+  "gene_id" integer NOT NULL
 );
 
-CREATE UNIQUE INDEX gene_idx ON alt_allele (gene_id);
+CREATE UNIQUE INDEX "gene_idx" ON "alt_allele" ("gene_id");
 
 --
--- Table: alt_allele_attrib
+-- Table: "alt_allele_attrib"
 --
-CREATE TABLE alt_allele_attrib (
-  alt_allele_id integer,
-  attrib enum
+CREATE TABLE "alt_allele_attrib" (
+  "alt_allele_id" integer,
+  "attrib" enum
 );
 
 --
--- Table: alt_allele_group
+-- Table: "alt_allele_group"
 --
-CREATE TABLE alt_allele_group (
-  alt_allele_group_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL
+CREATE TABLE "alt_allele_group" (
+  "alt_allele_group_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL
 );
 
 --
--- Table: analysis
+-- Table: "analysis"
 --
-CREATE TABLE analysis (
-  analysis_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  created datetime,
-  logic_name varchar(40) NOT NULL DEFAULT '',
-  db varchar(120),
-  db_version varchar(40),
-  db_file varchar(120),
-  program varchar(80),
-  program_version varchar(40),
-  program_file varchar(80),
-  parameters text,
-  module varchar(80),
-  module_version varchar(40),
-  gff_source varchar(40),
-  gff_feature varchar(40)
+CREATE TABLE "analysis" (
+  "analysis_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "created" datetime,
+  "logic_name" varchar(40) NOT NULL DEFAULT '',
+  "db" varchar(120),
+  "db_version" varchar(40),
+  "db_file" varchar(120),
+  "program" varchar(80),
+  "program_version" varchar(40),
+  "program_file" varchar(80),
+  "parameters" text,
+  "module" varchar(80),
+  "module_version" varchar(40),
+  "gff_source" varchar(40),
+  "gff_feature" varchar(40)
 );
 
-CREATE UNIQUE INDEX logic_name_idx ON analysis (logic_name);
+CREATE UNIQUE INDEX "logic_name_idx" ON "analysis" ("logic_name");
 
 --
--- Table: analysis_description
+-- Table: "analysis_description"
 --
-CREATE TABLE analysis_description (
-  analysis_id integer NOT NULL DEFAULT 0,
-  description text,
-  display_label varchar(255),
-  displayable tinyint NOT NULL DEFAULT 1,
-  web_data text
+CREATE TABLE "analysis_description" (
+  "analysis_id" integer NOT NULL DEFAULT 0,
+  "description" text,
+  "display_label" varchar(255),
+  "displayable" tinyint NOT NULL DEFAULT 1,
+  "web_data" text
 );
 
-CREATE UNIQUE INDEX analysis_idx ON analysis_description (analysis_id);
+CREATE UNIQUE INDEX "analysis_idx" ON "analysis_description" ("analysis_id");
 
 --
--- Table: assembly
+-- Table: "assembly"
 --
-CREATE TABLE assembly (
-  asm_seq_region_id integer NOT NULL DEFAULT 0,
-  cmp_seq_region_id integer NOT NULL DEFAULT 0,
-  asm_start integer NOT NULL DEFAULT 0,
-  asm_end integer NOT NULL DEFAULT 0,
-  cmp_start integer NOT NULL DEFAULT 0,
-  cmp_end integer NOT NULL DEFAULT 0,
-  ori tinyint NOT NULL DEFAULT 0
+CREATE TABLE "assembly" (
+  "asm_seq_region_id" integer NOT NULL DEFAULT 0,
+  "cmp_seq_region_id" integer NOT NULL DEFAULT 0,
+  "asm_start" integer NOT NULL DEFAULT 0,
+  "asm_end" integer NOT NULL DEFAULT 0,
+  "cmp_start" integer NOT NULL DEFAULT 0,
+  "cmp_end" integer NOT NULL DEFAULT 0,
+  "ori" tinyint NOT NULL DEFAULT 0
 );
 
-CREATE UNIQUE INDEX all_idx ON assembly (asm_seq_region_id, cmp_seq_region_id, asm_start, asm_end, cmp_start, cmp_end, ori);
+CREATE UNIQUE INDEX "all_idx" ON "assembly" ("asm_seq_region_id", "cmp_seq_region_id", "asm_start", "asm_end", "cmp_start", "cmp_end", "ori");
 
 --
--- Table: assembly_exception
+-- Table: "assembly_exception"
 --
-CREATE TABLE assembly_exception (
-  assembly_exception_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  exc_type enum NOT NULL DEFAULT 'HAP',
-  exc_seq_region_id integer NOT NULL DEFAULT 0,
-  exc_seq_region_start integer NOT NULL DEFAULT 0,
-  exc_seq_region_end integer NOT NULL DEFAULT 0,
-  ori integer NOT NULL DEFAULT 0
+CREATE TABLE "assembly_exception" (
+  "assembly_exception_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "exc_type" enum NOT NULL DEFAULT 'HAP',
+  "exc_seq_region_id" integer NOT NULL DEFAULT 0,
+  "exc_seq_region_start" integer NOT NULL DEFAULT 0,
+  "exc_seq_region_end" integer NOT NULL DEFAULT 0,
+  "ori" integer NOT NULL DEFAULT 0
 );
 
 --
--- Table: associated_group
+-- Table: "associated_group"
 --
-CREATE TABLE associated_group (
-  associated_group_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  description varchar(128)
+CREATE TABLE "associated_group" (
+  "associated_group_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "description" varchar(128)
 );
 
 --
--- Table: associated_xref
+-- Table: "associated_xref"
 --
-CREATE TABLE associated_xref (
-  associated_xref_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  object_xref_id integer NOT NULL DEFAULT 0,
-  xref_id integer NOT NULL DEFAULT 0,
-  source_xref_id integer,
-  condition_type varchar(128),
-  associated_group_id integer,
-  rank integer DEFAULT 0
+CREATE TABLE "associated_xref" (
+  "associated_xref_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "object_xref_id" integer NOT NULL DEFAULT 0,
+  "xref_id" integer NOT NULL DEFAULT 0,
+  "source_xref_id" integer,
+  "condition_type" varchar(128),
+  "associated_group_id" integer,
+  "rank" integer DEFAULT 0
 );
 
-CREATE UNIQUE INDEX object_associated_source_type_idx ON associated_xref (object_xref_id, xref_id, source_xref_id, condition_type, associated_group_id);
+CREATE UNIQUE INDEX "object_associated_source_type_idx" ON "associated_xref" ("object_xref_id", "xref_id", "source_xref_id", "condition_type", "associated_group_id");
 
 --
--- Table: attrib_type
+-- Table: "attrib_type"
 --
-CREATE TABLE attrib_type (
-  attrib_type_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  code varchar(20) NOT NULL DEFAULT '',
-  name varchar(255) NOT NULL DEFAULT '',
-  description text
+CREATE TABLE "attrib_type" (
+  "attrib_type_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "code" varchar(20) NOT NULL DEFAULT '',
+  "name" varchar(255) NOT NULL DEFAULT '',
+  "description" text
 );
 
-CREATE UNIQUE INDEX code_idx ON attrib_type (code);
+CREATE UNIQUE INDEX "code_idx" ON "attrib_type" ("code");
 
 --
--- Table: biotype
+-- Table: "biotype"
 --
-CREATE TABLE biotype (
-  biotype_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  name varchar(64) NOT NULL,
-  object_type enum NOT NULL DEFAULT 'gene',
-  db_type varchar NOT NULL DEFAULT 'core',
-  attrib_type_id integer,
-  description text,
-  biotype_group enum,
-  so_acc varchar(64)
+CREATE TABLE "biotype" (
+  "biotype_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "name" varchar(64) NOT NULL,
+  "object_type" enum NOT NULL DEFAULT 'gene',
+  "db_type" varchar NOT NULL DEFAULT 'core',
+  "attrib_type_id" integer,
+  "description" text,
+  "biotype_group" enum,
+  "so_acc" varchar(64)
 );
 
-CREATE UNIQUE INDEX name_type_idx ON biotype (name, object_type);
+CREATE UNIQUE INDEX "name_type_idx" ON "biotype" ("name", "object_type");
 
 --
--- Table: coord_system
+-- Table: "coord_system"
 --
-CREATE TABLE coord_system (
-  coord_system_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  species_id integer NOT NULL DEFAULT 1,
-  name varchar(40) NOT NULL,
-  version varchar(255),
-  rank integer NOT NULL,
-  attrib varchar
+CREATE TABLE "coord_system" (
+  "coord_system_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "species_id" integer NOT NULL DEFAULT 1,
+  "name" varchar(40) NOT NULL,
+  "version" varchar(255),
+  "rank" integer NOT NULL,
+  "attrib" varchar
 );
 
-CREATE UNIQUE INDEX name_idx ON coord_system (name, version, species_id);
+CREATE UNIQUE INDEX "name_idx" ON "coord_system" ("name", "version", "species_id");
 
-CREATE UNIQUE INDEX rank_idx ON coord_system (rank, species_id);
+CREATE UNIQUE INDEX "rank_idx" ON "coord_system" ("rank", "species_id");
 
 --
--- Table: data_file
+-- Table: "data_file"
 --
-CREATE TABLE data_file (
-  data_file_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  coord_system_id integer NOT NULL,
-  analysis_id smallint NOT NULL,
-  name varchar(100) NOT NULL,
-  version_lock tinyint NOT NULL DEFAULT 0,
-  absolute tinyint NOT NULL DEFAULT 0,
-  url text,
-  file_type enum
+CREATE TABLE "data_file" (
+  "data_file_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "coord_system_id" integer NOT NULL,
+  "analysis_id" smallint NOT NULL,
+  "name" varchar(100) NOT NULL,
+  "version_lock" tinyint NOT NULL DEFAULT 0,
+  "absolute" tinyint NOT NULL DEFAULT 0,
+  "url" text,
+  "file_type" enum
 );
 
-CREATE UNIQUE INDEX df_unq_idx ON data_file (coord_system_id, analysis_id, name, file_type);
+CREATE UNIQUE INDEX "df_unq_idx" ON "data_file" ("coord_system_id", "analysis_id", "name", "file_type");
 
 --
--- Table: density_feature
+-- Table: "density_feature"
 --
-CREATE TABLE density_feature (
-  density_feature_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  density_type_id integer NOT NULL DEFAULT 0,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  density_value float NOT NULL DEFAULT 0
+CREATE TABLE "density_feature" (
+  "density_feature_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "density_type_id" integer NOT NULL DEFAULT 0,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "density_value" float NOT NULL DEFAULT 0
 );
 
 --
--- Table: density_type
+-- Table: "density_type"
 --
-CREATE TABLE density_type (
-  density_type_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  analysis_id integer NOT NULL DEFAULT 0,
-  block_size integer NOT NULL DEFAULT 0,
-  region_features integer NOT NULL DEFAULT 0,
-  value_type enum NOT NULL DEFAULT 'sum'
+CREATE TABLE "density_type" (
+  "density_type_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "analysis_id" integer NOT NULL DEFAULT 0,
+  "block_size" integer NOT NULL DEFAULT 0,
+  "region_features" integer NOT NULL DEFAULT 0,
+  "value_type" enum NOT NULL DEFAULT 'sum'
 );
 
-CREATE UNIQUE INDEX analysis_id ON density_type (analysis_id, block_size, region_features);
+CREATE UNIQUE INDEX "analysis_id" ON "density_type" ("analysis_id", "block_size", "region_features");
 
 --
--- Table: dependent_xref
+-- Table: "dependent_xref"
 --
-CREATE TABLE dependent_xref (
-  object_xref_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  master_xref_id integer NOT NULL,
-  dependent_xref_id integer NOT NULL
+CREATE TABLE "dependent_xref" (
+  "object_xref_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "master_xref_id" integer NOT NULL,
+  "dependent_xref_id" integer NOT NULL
 );
 
 --
--- Table: ditag
+-- Table: "ditag"
 --
-CREATE TABLE ditag (
-  ditag_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  name varchar(30),
-  type varchar(30),
-  tag_count smallint DEFAULT 1,
-  sequence text
+CREATE TABLE "ditag" (
+  "ditag_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "name" varchar(30),
+  "type" varchar(30),
+  "tag_count" smallint DEFAULT 1,
+  "sequence" text
 );
 
 --
--- Table: ditag_feature
+-- Table: "ditag_feature"
 --
-CREATE TABLE ditag_feature (
-  ditag_feature_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  ditag_id integer NOT NULL DEFAULT 0,
-  ditag_pair_id integer NOT NULL DEFAULT 0,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  seq_region_strand tinyint NOT NULL DEFAULT 0,
-  analysis_id integer NOT NULL DEFAULT 0,
-  hit_start integer NOT NULL DEFAULT 0,
-  hit_end integer NOT NULL DEFAULT 0,
-  hit_strand tinyint NOT NULL DEFAULT 0,
-  cigar_line text,
-  ditag_side char(1) DEFAULT ''
+CREATE TABLE "ditag_feature" (
+  "ditag_feature_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "ditag_id" integer NOT NULL DEFAULT 0,
+  "ditag_pair_id" integer NOT NULL DEFAULT 0,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "seq_region_strand" tinyint NOT NULL DEFAULT 0,
+  "analysis_id" integer NOT NULL DEFAULT 0,
+  "hit_start" integer NOT NULL DEFAULT 0,
+  "hit_end" integer NOT NULL DEFAULT 0,
+  "hit_strand" tinyint NOT NULL DEFAULT 0,
+  "cigar_line" text,
+  "ditag_side" char(1) DEFAULT ''
 );
 
 --
--- Table: dna
+-- Table: "dna"
 --
-CREATE TABLE dna (
-  seq_region_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL DEFAULT 0,
-  sequence mediumtext NOT NULL
+CREATE TABLE "dna" (
+  "seq_region_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL DEFAULT 0,
+  "sequence" mediumtext NOT NULL
 );
 
 --
--- Table: dna_align_feature
+-- Table: "dna_align_feature"
 --
-CREATE TABLE dna_align_feature (
-  dna_align_feature_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  seq_region_strand tinyint NOT NULL DEFAULT 0,
-  hit_start integer NOT NULL DEFAULT 0,
-  hit_end integer NOT NULL DEFAULT 0,
-  hit_strand tinyint NOT NULL DEFAULT 0,
-  hit_name varchar(40) NOT NULL DEFAULT '',
-  analysis_id integer NOT NULL DEFAULT 0,
-  score double precision,
-  evalue double precision,
-  perc_ident float,
-  cigar_line text,
-  external_db_id smallint,
-  hcoverage double precision,
-  align_type enum DEFAULT 'ensembl'
+CREATE TABLE "dna_align_feature" (
+  "dna_align_feature_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "seq_region_strand" tinyint NOT NULL DEFAULT 0,
+  "hit_start" integer NOT NULL DEFAULT 0,
+  "hit_end" integer NOT NULL DEFAULT 0,
+  "hit_strand" tinyint NOT NULL DEFAULT 0,
+  "hit_name" varchar(40) NOT NULL DEFAULT '',
+  "analysis_id" integer NOT NULL DEFAULT 0,
+  "score" double precision,
+  "evalue" double precision,
+  "perc_ident" float,
+  "cigar_line" text,
+  "external_db_id" smallint,
+  "hcoverage" double precision,
+  "align_type" enum DEFAULT 'ensembl'
 );
 
 --
--- Table: dna_align_feature_attrib
+-- Table: "dna_align_feature_attrib"
 --
-CREATE TABLE dna_align_feature_attrib (
-  dna_align_feature_id integer NOT NULL,
-  attrib_type_id smallint NOT NULL,
-  value text NOT NULL
+CREATE TABLE "dna_align_feature_attrib" (
+  "dna_align_feature_id" integer NOT NULL,
+  "attrib_type_id" smallint NOT NULL,
+  "value" text NOT NULL
 );
 
-CREATE UNIQUE INDEX dna_align_feature_attribx ON dna_align_feature_attrib (dna_align_feature_id, attrib_type_id, value);
+CREATE UNIQUE INDEX "dna_align_feature_attribx" ON "dna_align_feature_attrib" ("dna_align_feature_id", "attrib_type_id", "value");
 
 --
--- Table: exon
+-- Table: "exon"
 --
-CREATE TABLE exon (
-  exon_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL,
-  seq_region_start integer NOT NULL,
-  seq_region_end integer NOT NULL,
-  seq_region_strand tinyint NOT NULL,
-  phase tinyint NOT NULL,
-  end_phase tinyint NOT NULL,
-  is_current tinyint NOT NULL DEFAULT 1,
-  is_constitutive tinyint NOT NULL DEFAULT 0,
-  stable_id varchar(128),
-  version smallint,
-  created_date datetime,
-  modified_date datetime
+CREATE TABLE "exon" (
+  "exon_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL,
+  "seq_region_start" integer NOT NULL,
+  "seq_region_end" integer NOT NULL,
+  "seq_region_strand" tinyint NOT NULL,
+  "phase" tinyint NOT NULL,
+  "end_phase" tinyint NOT NULL,
+  "is_current" tinyint NOT NULL DEFAULT 1,
+  "is_constitutive" tinyint NOT NULL DEFAULT 0,
+  "stable_id" varchar(128),
+  "version" smallint,
+  "created_date" datetime,
+  "modified_date" datetime
 );
 
 --
--- Table: exon_transcript
+-- Table: "exon_transcript"
 --
-CREATE TABLE exon_transcript (
-  exon_id integer NOT NULL DEFAULT 0,
-  transcript_id integer NOT NULL DEFAULT 0,
-  rank integer NOT NULL DEFAULT 0,
-  PRIMARY KEY (exon_id, transcript_id, rank)
+CREATE TABLE "exon_transcript" (
+  "exon_id" integer NOT NULL DEFAULT 0,
+  "transcript_id" integer NOT NULL DEFAULT 0,
+  "rank" integer NOT NULL DEFAULT 0,
+  PRIMARY KEY ("exon_id", "transcript_id", "rank")
 );
 
 --
--- Table: external_db
+-- Table: "external_db"
 --
-CREATE TABLE external_db (
-  external_db_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL DEFAULT 0,
-  db_name varchar(27) NOT NULL DEFAULT '',
-  db_release varchar(40) NOT NULL DEFAULT '',
-  status enum NOT NULL DEFAULT 'KNOWNXREF',
-  priority integer NOT NULL DEFAULT 0,
-  db_display_name varchar(255),
-  type enum,
-  secondary_db_name varchar(255),
-  secondary_db_table varchar(255),
-  description text
+CREATE TABLE "external_db" (
+  "external_db_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL DEFAULT 0,
+  "db_name" varchar(27) NOT NULL DEFAULT '',
+  "db_release" varchar(40) NOT NULL DEFAULT '',
+  "status" enum NOT NULL DEFAULT 'KNOWNXREF',
+  "priority" integer NOT NULL DEFAULT 0,
+  "db_display_name" varchar(255),
+  "type" enum,
+  "secondary_db_name" varchar(255),
+  "secondary_db_table" varchar(255),
+  "description" text
 );
 
-CREATE UNIQUE INDEX db_name_db_release_idx ON external_db (db_name, db_release);
+CREATE UNIQUE INDEX "db_name_db_release_idx" ON "external_db" ("db_name", "db_release");
 
 --
--- Table: external_synonym
+-- Table: "external_synonym"
 --
-CREATE TABLE external_synonym (
-  xref_id integer NOT NULL DEFAULT 0,
-  synonym varchar(40) NOT NULL DEFAULT '',
-  PRIMARY KEY (xref_id, synonym)
+CREATE TABLE "external_synonym" (
+  "xref_id" integer NOT NULL DEFAULT 0,
+  "synonym" varchar(40) NOT NULL DEFAULT '',
+  PRIMARY KEY ("xref_id", "synonym")
 );
 
 --
--- Table: gene
+-- Table: "gene"
 --
-CREATE TABLE gene (
-  gene_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  biotype varchar(40) NOT NULL,
-  analysis_id smallint NOT NULL,
-  seq_region_id integer NOT NULL,
-  seq_region_start integer NOT NULL,
-  seq_region_end integer NOT NULL,
-  seq_region_strand tinyint NOT NULL,
-  display_xref_id integer,
-  source varchar(40) NOT NULL,
-  description text,
-  is_current tinyint NOT NULL DEFAULT 1,
-  canonical_transcript_id integer NOT NULL,
-  stable_id varchar(128),
-  version smallint,
-  created_date datetime,
-  modified_date datetime
+CREATE TABLE "gene" (
+  "gene_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "biotype" varchar(40) NOT NULL,
+  "analysis_id" smallint NOT NULL,
+  "seq_region_id" integer NOT NULL,
+  "seq_region_start" integer NOT NULL,
+  "seq_region_end" integer NOT NULL,
+  "seq_region_strand" tinyint NOT NULL,
+  "display_xref_id" integer,
+  "source" varchar(40) NOT NULL,
+  "description" text,
+  "is_current" tinyint NOT NULL DEFAULT 1,
+  "canonical_transcript_id" integer NOT NULL,
+  "stable_id" varchar(128),
+  "version" smallint,
+  "created_date" datetime,
+  "modified_date" datetime
 );
 
 --
--- Table: gene_archive
+-- Table: "gene_archive"
 --
-CREATE TABLE gene_archive (
-  gene_stable_id varchar(128) NOT NULL DEFAULT '',
-  gene_version smallint NOT NULL DEFAULT 0,
-  transcript_stable_id varchar(128) NOT NULL DEFAULT '',
-  transcript_version smallint NOT NULL DEFAULT 0,
-  translation_stable_id varchar(128) NOT NULL DEFAULT '',
-  translation_version smallint NOT NULL DEFAULT 0,
-  peptide_archive_id integer NOT NULL DEFAULT 0,
-  mapping_session_id integer NOT NULL DEFAULT 0
+CREATE TABLE "gene_archive" (
+  "gene_stable_id" varchar(128) NOT NULL DEFAULT '',
+  "gene_version" smallint NOT NULL DEFAULT 0,
+  "transcript_stable_id" varchar(128) NOT NULL DEFAULT '',
+  "transcript_version" smallint NOT NULL DEFAULT 0,
+  "translation_stable_id" varchar(128) NOT NULL DEFAULT '',
+  "translation_version" smallint NOT NULL DEFAULT 0,
+  "peptide_archive_id" integer NOT NULL DEFAULT 0,
+  "mapping_session_id" integer NOT NULL DEFAULT 0
 );
 
 --
--- Table: gene_attrib
+-- Table: "gene_attrib"
 --
-CREATE TABLE gene_attrib (
-  gene_id integer NOT NULL DEFAULT 0,
-  attrib_type_id smallint NOT NULL DEFAULT 0,
-  value text NOT NULL
+CREATE TABLE "gene_attrib" (
+  "gene_id" integer NOT NULL DEFAULT 0,
+  "attrib_type_id" smallint NOT NULL DEFAULT 0,
+  "value" text NOT NULL
 );
 
-CREATE UNIQUE INDEX gene_attribx ON gene_attrib (gene_id, attrib_type_id, value);
+CREATE UNIQUE INDEX "gene_attribx" ON "gene_attrib" ("gene_id", "attrib_type_id", "value");
 
 --
--- Table: genome_statistics
+-- Table: "genome_statistics"
 --
-CREATE TABLE genome_statistics (
-  genome_statistics_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  statistic varchar(128) NOT NULL,
-  value bigint NOT NULL DEFAULT 0,
-  species_id integer DEFAULT 1,
-  attrib_type_id integer,
-  timestamp datetime
+CREATE TABLE "genome_statistics" (
+  "genome_statistics_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "statistic" varchar(128) NOT NULL,
+  "value" bigint NOT NULL DEFAULT 0,
+  "species_id" integer DEFAULT 1,
+  "attrib_type_id" integer,
+  "timestamp" datetime
 );
 
-CREATE UNIQUE INDEX stats_uniq ON genome_statistics (statistic, attrib_type_id, species_id);
+CREATE UNIQUE INDEX "stats_uniq" ON "genome_statistics" ("statistic", "attrib_type_id", "species_id");
 
 --
--- Table: identity_xref
+-- Table: "identity_xref"
 --
-CREATE TABLE identity_xref (
-  object_xref_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL DEFAULT 0,
-  xref_identity integer,
-  ensembl_identity integer,
-  xref_start integer,
-  xref_end integer,
-  ensembl_start integer,
-  ensembl_end integer,
-  cigar_line text,
-  score double precision,
-  evalue double precision
+CREATE TABLE "identity_xref" (
+  "object_xref_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL DEFAULT 0,
+  "xref_identity" integer,
+  "ensembl_identity" integer,
+  "xref_start" integer,
+  "xref_end" integer,
+  "ensembl_start" integer,
+  "ensembl_end" integer,
+  "cigar_line" text,
+  "score" double precision,
+  "evalue" double precision
 );
 
 --
--- Table: interpro
+-- Table: "interpro"
 --
-CREATE TABLE interpro (
-  interpro_ac varchar(40) NOT NULL DEFAULT '',
-  id varchar(40) NOT NULL
+CREATE TABLE "interpro" (
+  "interpro_ac" varchar(40) NOT NULL DEFAULT '',
+  "id" varchar(40) NOT NULL
 );
 
-CREATE UNIQUE INDEX accession_idx ON interpro (interpro_ac, id);
+CREATE UNIQUE INDEX "accession_idx" ON "interpro" ("interpro_ac", "id");
 
 --
--- Table: intron_supporting_evidence
+-- Table: "intron_supporting_evidence"
 --
-CREATE TABLE intron_supporting_evidence (
-  intron_supporting_evidence_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  analysis_id smallint NOT NULL,
-  seq_region_id integer NOT NULL,
-  seq_region_start integer NOT NULL,
-  seq_region_end integer NOT NULL,
-  seq_region_strand tinyint NOT NULL,
-  hit_name varchar(100) NOT NULL,
-  score decimal(10,3),
-  score_type enum DEFAULT 'NONE',
-  is_splice_canonical tinyint NOT NULL DEFAULT 0
+CREATE TABLE "intron_supporting_evidence" (
+  "intron_supporting_evidence_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "analysis_id" smallint NOT NULL,
+  "seq_region_id" integer NOT NULL,
+  "seq_region_start" integer NOT NULL,
+  "seq_region_end" integer NOT NULL,
+  "seq_region_strand" tinyint NOT NULL,
+  "hit_name" varchar(100) NOT NULL,
+  "score" decimal(10,3),
+  "score_type" enum DEFAULT 'NONE',
+  "is_splice_canonical" tinyint NOT NULL DEFAULT 0
 );
 
-CREATE UNIQUE INDEX analysis_id02 ON intron_supporting_evidence (analysis_id, seq_region_id, seq_region_start, seq_region_end, seq_region_strand, hit_name);
+CREATE UNIQUE INDEX "analysis_id02" ON "intron_supporting_evidence" ("analysis_id", "seq_region_id", "seq_region_start", "seq_region_end", "seq_region_strand", "hit_name");
 
 --
--- Table: karyotype
+-- Table: "karyotype"
 --
-CREATE TABLE karyotype (
-  karyotype_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  band varchar(40),
-  stain varchar(40)
+CREATE TABLE "karyotype" (
+  "karyotype_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "band" varchar(40),
+  "stain" varchar(40)
 );
 
 --
--- Table: map
+-- Table: "map"
 --
-CREATE TABLE map (
-  map_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  map_name varchar(30) NOT NULL DEFAULT ''
+CREATE TABLE "map" (
+  "map_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "map_name" varchar(30) NOT NULL DEFAULT ''
 );
 
 --
--- Table: mapping_session
+-- Table: "mapping_session"
 --
-CREATE TABLE mapping_session (
-  mapping_session_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  old_db_name varchar(80) NOT NULL DEFAULT '',
-  new_db_name varchar(80) NOT NULL DEFAULT '',
-  old_release varchar(5) NOT NULL DEFAULT '',
-  new_release varchar(5) NOT NULL DEFAULT '',
-  old_assembly varchar(20) NOT NULL DEFAULT '',
-  new_assembly varchar(20) NOT NULL DEFAULT '',
-  created datetime
+CREATE TABLE "mapping_session" (
+  "mapping_session_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "old_db_name" varchar(80) NOT NULL DEFAULT '',
+  "new_db_name" varchar(80) NOT NULL DEFAULT '',
+  "old_release" varchar(5) NOT NULL DEFAULT '',
+  "new_release" varchar(5) NOT NULL DEFAULT '',
+  "old_assembly" varchar(20) NOT NULL DEFAULT '',
+  "new_assembly" varchar(20) NOT NULL DEFAULT '',
+  "created" datetime
 );
 
 --
--- Table: mapping_set
+-- Table: "mapping_set"
 --
-CREATE TABLE mapping_set (
-  mapping_set_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  internal_schema_build varchar(20) NOT NULL,
-  external_schema_build varchar(20) NOT NULL
+CREATE TABLE "mapping_set" (
+  "mapping_set_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "internal_schema_build" varchar(20) NOT NULL,
+  "external_schema_build" varchar(20) NOT NULL
 );
 
-CREATE UNIQUE INDEX mapping_idx ON mapping_set (internal_schema_build, external_schema_build);
+CREATE UNIQUE INDEX "mapping_idx" ON "mapping_set" ("internal_schema_build", "external_schema_build");
 
 --
--- Table: marker
+-- Table: "marker"
 --
-CREATE TABLE marker (
-  marker_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  display_marker_synonym_id integer,
-  left_primer varchar(100) NOT NULL DEFAULT '',
-  right_primer varchar(100) NOT NULL DEFAULT '',
-  min_primer_dist integer NOT NULL DEFAULT 0,
-  max_primer_dist integer NOT NULL DEFAULT 0,
-  priority integer,
-  type enum
+CREATE TABLE "marker" (
+  "marker_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "display_marker_synonym_id" integer,
+  "left_primer" varchar(100) NOT NULL DEFAULT '',
+  "right_primer" varchar(100) NOT NULL DEFAULT '',
+  "min_primer_dist" integer NOT NULL DEFAULT 0,
+  "max_primer_dist" integer NOT NULL DEFAULT 0,
+  "priority" integer,
+  "type" enum
 );
 
 --
--- Table: marker_feature
+-- Table: "marker_feature"
 --
-CREATE TABLE marker_feature (
-  marker_feature_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  marker_id integer NOT NULL DEFAULT 0,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  analysis_id integer NOT NULL DEFAULT 0,
-  map_weight integer
+CREATE TABLE "marker_feature" (
+  "marker_feature_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "marker_id" integer NOT NULL DEFAULT 0,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "analysis_id" integer NOT NULL DEFAULT 0,
+  "map_weight" integer
 );
 
 --
--- Table: marker_map_location
+-- Table: "marker_map_location"
 --
-CREATE TABLE marker_map_location (
-  marker_id integer NOT NULL DEFAULT 0,
-  map_id integer NOT NULL DEFAULT 0,
-  chromosome_name varchar(15) NOT NULL DEFAULT '',
-  marker_synonym_id integer NOT NULL DEFAULT 0,
-  position varchar(15) NOT NULL DEFAULT '',
-  lod_score double precision,
-  PRIMARY KEY (marker_id, map_id)
+CREATE TABLE "marker_map_location" (
+  "marker_id" integer NOT NULL DEFAULT 0,
+  "map_id" integer NOT NULL DEFAULT 0,
+  "chromosome_name" varchar(15) NOT NULL DEFAULT '',
+  "marker_synonym_id" integer NOT NULL DEFAULT 0,
+  "position" varchar(15) NOT NULL DEFAULT '',
+  "lod_score" double precision,
+  PRIMARY KEY ("marker_id", "map_id")
 );
 
 --
--- Table: marker_synonym
+-- Table: "marker_synonym"
 --
-CREATE TABLE marker_synonym (
-  marker_synonym_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  marker_id integer NOT NULL DEFAULT 0,
-  source varchar(20),
-  name varchar(30)
+CREATE TABLE "marker_synonym" (
+  "marker_synonym_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "marker_id" integer NOT NULL DEFAULT 0,
+  "source" varchar(20),
+  "name" varchar(30)
 );
 
 --
--- Table: meta
+-- Table: "meta"
 --
-CREATE TABLE meta (
-  meta_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  species_id integer DEFAULT 1,
-  meta_key varchar(40) NOT NULL,
-  meta_value varchar(255) NOT NULL
+CREATE TABLE "meta" (
+  "meta_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "species_id" integer DEFAULT 1,
+  "meta_key" varchar(40) NOT NULL,
+  "meta_value" varchar(255) NOT NULL
 );
 
-CREATE UNIQUE INDEX species_key_value_idx ON meta (species_id, meta_key, meta_value);
+CREATE UNIQUE INDEX "species_key_value_idx" ON "meta" ("species_id", "meta_key", "meta_value");
 
 --
--- Table: meta_coord
+-- Table: "meta_coord"
 --
-CREATE TABLE meta_coord (
-  table_name varchar(40) NOT NULL DEFAULT '',
-  coord_system_id integer NOT NULL DEFAULT 0,
-  max_length integer
+CREATE TABLE "meta_coord" (
+  "table_name" varchar(40) NOT NULL DEFAULT '',
+  "coord_system_id" integer NOT NULL DEFAULT 0,
+  "max_length" integer
 );
 
-CREATE UNIQUE INDEX cs_table_name_idx ON meta_coord (coord_system_id, table_name);
+CREATE UNIQUE INDEX "cs_table_name_idx" ON "meta_coord" ("coord_system_id", "table_name");
 
 --
--- Table: misc_attrib
+-- Table: "misc_attrib"
 --
-CREATE TABLE misc_attrib (
-  misc_feature_id integer NOT NULL DEFAULT 0,
-  attrib_type_id smallint NOT NULL DEFAULT 0,
-  value text NOT NULL
+CREATE TABLE "misc_attrib" (
+  "misc_feature_id" integer NOT NULL DEFAULT 0,
+  "attrib_type_id" smallint NOT NULL DEFAULT 0,
+  "value" text NOT NULL
 );
 
-CREATE UNIQUE INDEX misc_attribx ON misc_attrib (misc_feature_id, attrib_type_id, value);
+CREATE UNIQUE INDEX "misc_attribx" ON "misc_attrib" ("misc_feature_id", "attrib_type_id", "value");
 
 --
--- Table: misc_feature
+-- Table: "misc_feature"
 --
-CREATE TABLE misc_feature (
-  misc_feature_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  seq_region_strand tinyint NOT NULL DEFAULT 0
+CREATE TABLE "misc_feature" (
+  "misc_feature_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "seq_region_strand" tinyint NOT NULL DEFAULT 0
 );
 
 --
--- Table: misc_feature_misc_set
+-- Table: "misc_feature_misc_set"
 --
-CREATE TABLE misc_feature_misc_set (
-  misc_feature_id integer NOT NULL DEFAULT 0,
-  misc_set_id smallint NOT NULL DEFAULT 0,
-  PRIMARY KEY (misc_feature_id, misc_set_id)
+CREATE TABLE "misc_feature_misc_set" (
+  "misc_feature_id" integer NOT NULL DEFAULT 0,
+  "misc_set_id" smallint NOT NULL DEFAULT 0,
+  PRIMARY KEY ("misc_feature_id", "misc_set_id")
 );
 
 --
--- Table: misc_set
+-- Table: "misc_set"
 --
-CREATE TABLE misc_set (
-  misc_set_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  code varchar(25) NOT NULL DEFAULT '',
-  name varchar(255) NOT NULL DEFAULT '',
-  description text NOT NULL,
-  max_length integer NOT NULL DEFAULT 0
+CREATE TABLE "misc_set" (
+  "misc_set_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "code" varchar(25) NOT NULL DEFAULT '',
+  "name" varchar(255) NOT NULL DEFAULT '',
+  "description" text NOT NULL,
+  "max_length" integer NOT NULL DEFAULT 0
 );
 
-CREATE UNIQUE INDEX code_idx02 ON misc_set (code);
+CREATE UNIQUE INDEX "code_idx02" ON "misc_set" ("code");
 
 --
--- Table: object_xref
+-- Table: "object_xref"
 --
-CREATE TABLE object_xref (
-  object_xref_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  ensembl_id integer NOT NULL DEFAULT 0,
-  ensembl_object_type enum NOT NULL DEFAULT 'RawContig',
-  xref_id integer NOT NULL,
-  linkage_annotation varchar(255),
-  analysis_id smallint
+CREATE TABLE "object_xref" (
+  "object_xref_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "ensembl_id" integer NOT NULL DEFAULT 0,
+  "ensembl_object_type" enum NOT NULL DEFAULT 'RawContig',
+  "xref_id" integer NOT NULL,
+  "linkage_annotation" varchar(255),
+  "analysis_id" smallint
 );
 
-CREATE UNIQUE INDEX xref_idx ON object_xref (xref_id, ensembl_object_type, ensembl_id, analysis_id);
+CREATE UNIQUE INDEX "xref_idx" ON "object_xref" ("xref_id", "ensembl_object_type", "ensembl_id", "analysis_id");
 
 --
--- Table: ontology_xref
+-- Table: "ontology_xref"
 --
-CREATE TABLE ontology_xref (
-  object_xref_id integer NOT NULL DEFAULT 0,
-  linkage_type varchar(3),
-  source_xref_id integer
+CREATE TABLE "ontology_xref" (
+  "object_xref_id" integer NOT NULL DEFAULT 0,
+  "linkage_type" varchar(3),
+  "source_xref_id" integer
 );
 
-CREATE UNIQUE INDEX object_source_type_idx ON ontology_xref (object_xref_id, source_xref_id, linkage_type);
+CREATE UNIQUE INDEX "object_source_type_idx" ON "ontology_xref" ("object_xref_id", "source_xref_id", "linkage_type");
 
 --
--- Table: operon
+-- Table: "operon"
 --
-CREATE TABLE operon (
-  operon_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL,
-  seq_region_start integer NOT NULL,
-  seq_region_end integer NOT NULL,
-  seq_region_strand tinyint NOT NULL,
-  display_label varchar(255),
-  analysis_id smallint NOT NULL,
-  stable_id varchar(128),
-  version smallint,
-  created_date datetime,
-  modified_date datetime
+CREATE TABLE "operon" (
+  "operon_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL,
+  "seq_region_start" integer NOT NULL,
+  "seq_region_end" integer NOT NULL,
+  "seq_region_strand" tinyint NOT NULL,
+  "display_label" varchar(255),
+  "analysis_id" smallint NOT NULL,
+  "stable_id" varchar(128),
+  "version" smallint,
+  "created_date" datetime,
+  "modified_date" datetime
 );
 
 --
--- Table: operon_transcript
+-- Table: "operon_transcript"
 --
-CREATE TABLE operon_transcript (
-  operon_transcript_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL,
-  seq_region_start integer NOT NULL,
-  seq_region_end integer NOT NULL,
-  seq_region_strand tinyint NOT NULL,
-  operon_id integer NOT NULL,
-  display_label varchar(255),
-  analysis_id smallint NOT NULL,
-  stable_id varchar(128),
-  version smallint,
-  created_date datetime,
-  modified_date datetime
+CREATE TABLE "operon_transcript" (
+  "operon_transcript_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL,
+  "seq_region_start" integer NOT NULL,
+  "seq_region_end" integer NOT NULL,
+  "seq_region_strand" tinyint NOT NULL,
+  "operon_id" integer NOT NULL,
+  "display_label" varchar(255),
+  "analysis_id" smallint NOT NULL,
+  "stable_id" varchar(128),
+  "version" smallint,
+  "created_date" datetime,
+  "modified_date" datetime
 );
 
 --
--- Table: operon_transcript_gene
+-- Table: "operon_transcript_gene"
 --
-CREATE TABLE operon_transcript_gene (
-  operon_transcript_id integer,
-  gene_id integer
+CREATE TABLE "operon_transcript_gene" (
+  "operon_transcript_id" integer,
+  "gene_id" integer
 );
 
 --
--- Table: peptide_archive
+-- Table: "peptide_archive"
 --
-CREATE TABLE peptide_archive (
-  peptide_archive_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  md5_checksum varchar(32),
-  peptide_seq mediumtext NOT NULL
+CREATE TABLE "peptide_archive" (
+  "peptide_archive_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "md5_checksum" varchar(32),
+  "peptide_seq" mediumtext NOT NULL
 );
 
 --
--- Table: prediction_exon
+-- Table: "prediction_exon"
 --
-CREATE TABLE prediction_exon (
-  prediction_exon_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  prediction_transcript_id integer NOT NULL DEFAULT 0,
-  exon_rank smallint NOT NULL DEFAULT 0,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  seq_region_strand tinyint NOT NULL DEFAULT 0,
-  start_phase tinyint NOT NULL DEFAULT 0,
-  score double precision,
-  p_value double precision
+CREATE TABLE "prediction_exon" (
+  "prediction_exon_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "prediction_transcript_id" integer NOT NULL DEFAULT 0,
+  "exon_rank" smallint NOT NULL DEFAULT 0,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "seq_region_strand" tinyint NOT NULL DEFAULT 0,
+  "start_phase" tinyint NOT NULL DEFAULT 0,
+  "score" double precision,
+  "p_value" double precision
 );
 
 --
--- Table: prediction_transcript
+-- Table: "prediction_transcript"
 --
-CREATE TABLE prediction_transcript (
-  prediction_transcript_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  seq_region_strand tinyint NOT NULL DEFAULT 0,
-  analysis_id integer,
-  display_label varchar(255)
+CREATE TABLE "prediction_transcript" (
+  "prediction_transcript_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "seq_region_strand" tinyint NOT NULL DEFAULT 0,
+  "analysis_id" integer,
+  "display_label" varchar(255)
 );
 
 --
--- Table: protein_align_feature
+-- Table: "protein_align_feature"
 --
-CREATE TABLE protein_align_feature (
-  protein_align_feature_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  seq_region_strand tinyint NOT NULL DEFAULT 1,
-  hit_start integer NOT NULL DEFAULT 0,
-  hit_end integer NOT NULL DEFAULT 0,
-  hit_name varchar(40) NOT NULL DEFAULT '',
-  analysis_id integer NOT NULL DEFAULT 0,
-  score double precision,
-  evalue double precision,
-  perc_ident float,
-  cigar_line text,
-  external_db_id smallint,
-  hcoverage double precision,
-  align_type enum DEFAULT 'ensembl'
+CREATE TABLE "protein_align_feature" (
+  "protein_align_feature_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "seq_region_strand" tinyint NOT NULL DEFAULT 1,
+  "hit_start" integer NOT NULL DEFAULT 0,
+  "hit_end" integer NOT NULL DEFAULT 0,
+  "hit_name" varchar(40) NOT NULL DEFAULT '',
+  "analysis_id" integer NOT NULL DEFAULT 0,
+  "score" double precision,
+  "evalue" double precision,
+  "perc_ident" float,
+  "cigar_line" text,
+  "external_db_id" smallint,
+  "hcoverage" double precision,
+  "align_type" enum DEFAULT 'ensembl'
 );
 
 --
--- Table: protein_feature
+-- Table: "protein_feature"
 --
-CREATE TABLE protein_feature (
-  protein_feature_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  translation_id integer NOT NULL DEFAULT 0,
-  seq_start integer NOT NULL DEFAULT 0,
-  seq_end integer NOT NULL DEFAULT 0,
-  hit_start integer NOT NULL DEFAULT 0,
-  hit_end integer NOT NULL DEFAULT 0,
-  hit_name varchar(40) NOT NULL,
-  analysis_id integer NOT NULL DEFAULT 0,
-  score double precision NOT NULL DEFAULT 0,
-  evalue double precision,
-  perc_ident float,
-  external_data text,
-  hit_description text,
-  cigar_line text,
-  align_type enum
+CREATE TABLE "protein_feature" (
+  "protein_feature_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "translation_id" integer NOT NULL DEFAULT 0,
+  "seq_start" integer NOT NULL DEFAULT 0,
+  "seq_end" integer NOT NULL DEFAULT 0,
+  "hit_start" integer NOT NULL DEFAULT 0,
+  "hit_end" integer NOT NULL DEFAULT 0,
+  "hit_name" varchar(40) NOT NULL,
+  "analysis_id" integer NOT NULL DEFAULT 0,
+  "score" double precision NOT NULL DEFAULT 0,
+  "evalue" double precision,
+  "perc_ident" float,
+  "external_data" text,
+  "hit_description" text,
+  "cigar_line" text,
+  "align_type" enum
 );
 
-CREATE UNIQUE INDEX aln_idx ON protein_feature (translation_id, hit_name, seq_start, seq_end, hit_start, hit_end, analysis_id);
+CREATE UNIQUE INDEX "aln_idx" ON "protein_feature" ("translation_id", "hit_name", "seq_start", "seq_end", "hit_start", "hit_end", "analysis_id");
 
 --
--- Table: repeat_consensus
+-- Table: "repeat_consensus"
 --
-CREATE TABLE repeat_consensus (
-  repeat_consensus_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  repeat_name varchar(255) NOT NULL DEFAULT '',
-  repeat_class varchar(100) NOT NULL DEFAULT '',
-  repeat_type varchar(40) NOT NULL DEFAULT '',
-  repeat_consensus text
+CREATE TABLE "repeat_consensus" (
+  "repeat_consensus_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "repeat_name" varchar(255) NOT NULL DEFAULT '',
+  "repeat_class" varchar(100) NOT NULL DEFAULT '',
+  "repeat_type" varchar(40) NOT NULL DEFAULT '',
+  "repeat_consensus" text
 );
 
 --
--- Table: repeat_feature
+-- Table: "repeat_feature"
 --
-CREATE TABLE repeat_feature (
-  repeat_feature_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  seq_region_strand tinyint NOT NULL DEFAULT 1,
-  repeat_start integer NOT NULL DEFAULT 0,
-  repeat_end integer NOT NULL DEFAULT 0,
-  repeat_consensus_id integer NOT NULL DEFAULT 0,
-  analysis_id integer NOT NULL DEFAULT 0,
-  score double precision
+CREATE TABLE "repeat_feature" (
+  "repeat_feature_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "seq_region_strand" tinyint NOT NULL DEFAULT 1,
+  "repeat_start" integer NOT NULL DEFAULT 0,
+  "repeat_end" integer NOT NULL DEFAULT 0,
+  "repeat_consensus_id" integer NOT NULL DEFAULT 0,
+  "analysis_id" integer NOT NULL DEFAULT 0,
+  "score" double precision
 );
 
 --
--- Table: seq_region
+-- Table: "seq_region"
 --
-CREATE TABLE seq_region (
-  seq_region_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  name varchar(255) NOT NULL,
-  coord_system_id integer NOT NULL DEFAULT 0,
-  length integer NOT NULL DEFAULT 0
+CREATE TABLE "seq_region" (
+  "seq_region_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "name" varchar(255) NOT NULL,
+  "coord_system_id" integer NOT NULL DEFAULT 0,
+  "length" integer NOT NULL DEFAULT 0
 );
 
-CREATE UNIQUE INDEX name_cs_idx ON seq_region (name, coord_system_id);
+CREATE UNIQUE INDEX "name_cs_idx" ON "seq_region" ("name", "coord_system_id");
 
 --
--- Table: seq_region_attrib
+-- Table: "seq_region_attrib"
 --
-CREATE TABLE seq_region_attrib (
-  seq_region_id integer NOT NULL DEFAULT 0,
-  attrib_type_id smallint NOT NULL DEFAULT 0,
-  value text NOT NULL
+CREATE TABLE "seq_region_attrib" (
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "attrib_type_id" smallint NOT NULL DEFAULT 0,
+  "value" text NOT NULL
 );
 
-CREATE UNIQUE INDEX region_attribx ON seq_region_attrib (seq_region_id, attrib_type_id, value);
+CREATE UNIQUE INDEX "region_attribx" ON "seq_region_attrib" ("seq_region_id", "attrib_type_id", "value");
 
 --
--- Table: seq_region_mapping
+-- Table: "seq_region_mapping"
 --
-CREATE TABLE seq_region_mapping (
-  external_seq_region_id integer NOT NULL,
-  internal_seq_region_id integer NOT NULL,
-  mapping_set_id integer NOT NULL
+CREATE TABLE "seq_region_mapping" (
+  "external_seq_region_id" integer NOT NULL,
+  "internal_seq_region_id" integer NOT NULL,
+  "mapping_set_id" integer NOT NULL
 );
 
 --
--- Table: seq_region_synonym
+-- Table: "seq_region_synonym"
 --
-CREATE TABLE seq_region_synonym (
-  seq_region_synonym_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL,
-  synonym varchar(250) NOT NULL,
-  external_db_id smallint
+CREATE TABLE "seq_region_synonym" (
+  "seq_region_synonym_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL,
+  "synonym" varchar(250) NOT NULL,
+  "external_db_id" smallint
 );
 
-CREATE UNIQUE INDEX syn_idx ON seq_region_synonym (synonym, seq_region_id);
+CREATE UNIQUE INDEX "syn_idx" ON "seq_region_synonym" ("synonym", "seq_region_id");
 
 --
--- Table: simple_feature
+-- Table: "simple_feature"
 --
-CREATE TABLE simple_feature (
-  simple_feature_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  seq_region_strand tinyint NOT NULL DEFAULT 0,
-  display_label varchar(40) NOT NULL DEFAULT '',
-  analysis_id integer NOT NULL DEFAULT 0,
-  score double precision
+CREATE TABLE "simple_feature" (
+  "simple_feature_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "seq_region_strand" tinyint NOT NULL DEFAULT 0,
+  "display_label" varchar(40) NOT NULL DEFAULT '',
+  "analysis_id" integer NOT NULL DEFAULT 0,
+  "score" double precision
 );
 
 --
--- Table: stable_id_event
+-- Table: "stable_id_event"
 --
-CREATE TABLE stable_id_event (
-  old_stable_id varchar(128),
-  old_version smallint,
-  new_stable_id varchar(128),
-  new_version smallint,
-  mapping_session_id integer NOT NULL DEFAULT 0,
-  type enum NOT NULL DEFAULT 'gene',
-  score float NOT NULL DEFAULT 0
+CREATE TABLE "stable_id_event" (
+  "old_stable_id" varchar(128),
+  "old_version" smallint,
+  "new_stable_id" varchar(128),
+  "new_version" smallint,
+  "mapping_session_id" integer NOT NULL DEFAULT 0,
+  "type" enum NOT NULL DEFAULT 'gene',
+  "score" float NOT NULL DEFAULT 0
 );
 
-CREATE UNIQUE INDEX uni_idx ON stable_id_event (mapping_session_id, old_stable_id, old_version, new_stable_id, new_version, type);
+CREATE UNIQUE INDEX "uni_idx" ON "stable_id_event" ("mapping_session_id", "old_stable_id", "old_version", "new_stable_id", "new_version", "type");
 
 --
--- Table: supporting_feature
+-- Table: "supporting_feature"
 --
-CREATE TABLE supporting_feature (
-  exon_id integer NOT NULL DEFAULT 0,
-  feature_type enum,
-  feature_id integer NOT NULL DEFAULT 0
+CREATE TABLE "supporting_feature" (
+  "exon_id" integer NOT NULL DEFAULT 0,
+  "feature_type" enum,
+  "feature_id" integer NOT NULL DEFAULT 0
 );
 
-CREATE UNIQUE INDEX all_idx02 ON supporting_feature (exon_id, feature_type, feature_id);
+CREATE UNIQUE INDEX "all_idx02" ON "supporting_feature" ("exon_id", "feature_type", "feature_id");
 
 --
--- Table: transcript
+-- Table: "transcript"
 --
-CREATE TABLE transcript (
-  transcript_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  gene_id integer,
-  analysis_id smallint NOT NULL,
-  seq_region_id integer NOT NULL,
-  seq_region_start integer NOT NULL,
-  seq_region_end integer NOT NULL,
-  seq_region_strand tinyint NOT NULL,
-  display_xref_id integer,
-  source varchar(40) NOT NULL DEFAULT 'ensembl',
-  biotype varchar(40) NOT NULL,
-  description text,
-  is_current tinyint NOT NULL DEFAULT 1,
-  canonical_translation_id integer,
-  stable_id varchar(128),
-  version smallint,
-  created_date datetime,
-  modified_date datetime
+CREATE TABLE "transcript" (
+  "transcript_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "gene_id" integer,
+  "analysis_id" smallint NOT NULL,
+  "seq_region_id" integer NOT NULL,
+  "seq_region_start" integer NOT NULL,
+  "seq_region_end" integer NOT NULL,
+  "seq_region_strand" tinyint NOT NULL,
+  "display_xref_id" integer,
+  "source" varchar(40) NOT NULL DEFAULT 'ensembl',
+  "biotype" varchar(40) NOT NULL,
+  "description" text,
+  "is_current" tinyint NOT NULL DEFAULT 1,
+  "canonical_translation_id" integer,
+  "stable_id" varchar(128),
+  "version" smallint,
+  "created_date" datetime,
+  "modified_date" datetime
 );
 
-CREATE UNIQUE INDEX canonical_translation_idx ON transcript (canonical_translation_id);
+CREATE UNIQUE INDEX "canonical_translation_idx" ON "transcript" ("canonical_translation_id");
 
 --
--- Table: transcript_attrib
+-- Table: "transcript_attrib"
 --
-CREATE TABLE transcript_attrib (
-  transcript_id integer NOT NULL DEFAULT 0,
-  attrib_type_id smallint NOT NULL DEFAULT 0,
-  value text NOT NULL
+CREATE TABLE "transcript_attrib" (
+  "transcript_id" integer NOT NULL DEFAULT 0,
+  "attrib_type_id" smallint NOT NULL DEFAULT 0,
+  "value" text NOT NULL
 );
 
-CREATE UNIQUE INDEX transcript_attribx ON transcript_attrib (transcript_id, attrib_type_id, value);
+CREATE UNIQUE INDEX "transcript_attribx" ON "transcript_attrib" ("transcript_id", "attrib_type_id", "value");
 
 --
--- Table: transcript_intron_supporting_evidence
+-- Table: "transcript_intron_supporting_evidence"
 --
-CREATE TABLE transcript_intron_supporting_evidence (
-  transcript_id integer NOT NULL,
-  intron_supporting_evidence_id integer NOT NULL,
-  previous_exon_id integer NOT NULL,
-  next_exon_id integer NOT NULL,
-  PRIMARY KEY (intron_supporting_evidence_id, transcript_id)
+CREATE TABLE "transcript_intron_supporting_evidence" (
+  "transcript_id" integer NOT NULL,
+  "intron_supporting_evidence_id" integer NOT NULL,
+  "previous_exon_id" integer NOT NULL,
+  "next_exon_id" integer NOT NULL,
+  PRIMARY KEY ("intron_supporting_evidence_id", "transcript_id")
 );
 
 --
--- Table: transcript_supporting_feature
+-- Table: "transcript_supporting_feature"
 --
-CREATE TABLE transcript_supporting_feature (
-  transcript_id integer NOT NULL DEFAULT 0,
-  feature_type enum,
-  feature_id integer NOT NULL DEFAULT 0
+CREATE TABLE "transcript_supporting_feature" (
+  "transcript_id" integer NOT NULL DEFAULT 0,
+  "feature_type" enum,
+  "feature_id" integer NOT NULL DEFAULT 0
 );
 
-CREATE UNIQUE INDEX all_idx03 ON transcript_supporting_feature (transcript_id, feature_type, feature_id);
+CREATE UNIQUE INDEX "all_idx03" ON "transcript_supporting_feature" ("transcript_id", "feature_type", "feature_id");
 
 --
--- Table: translation
+-- Table: "translation"
 --
-CREATE TABLE translation (
-  translation_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  transcript_id integer NOT NULL,
-  seq_start integer NOT NULL,
-  start_exon_id integer NOT NULL,
-  seq_end integer NOT NULL,
-  end_exon_id integer NOT NULL,
-  stable_id varchar(128),
-  version smallint,
-  created_date datetime,
-  modified_date datetime
+CREATE TABLE "translation" (
+  "translation_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "transcript_id" integer NOT NULL,
+  "seq_start" integer NOT NULL,
+  "start_exon_id" integer NOT NULL,
+  "seq_end" integer NOT NULL,
+  "end_exon_id" integer NOT NULL,
+  "stable_id" varchar(128),
+  "version" smallint,
+  "created_date" datetime,
+  "modified_date" datetime
 );
 
 --
--- Table: translation_attrib
+-- Table: "translation_attrib"
 --
-CREATE TABLE translation_attrib (
-  translation_id integer NOT NULL DEFAULT 0,
-  attrib_type_id smallint NOT NULL DEFAULT 0,
-  value text NOT NULL
+CREATE TABLE "translation_attrib" (
+  "translation_id" integer NOT NULL DEFAULT 0,
+  "attrib_type_id" smallint NOT NULL DEFAULT 0,
+  "value" text NOT NULL
 );
 
-CREATE UNIQUE INDEX translation_attribx ON translation_attrib (translation_id, attrib_type_id, value);
+CREATE UNIQUE INDEX "translation_attribx" ON "translation_attrib" ("translation_id", "attrib_type_id", "value");
 
 --
--- Table: unmapped_object
+-- Table: "unmapped_object"
 --
-CREATE TABLE unmapped_object (
-  unmapped_object_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  type enum NOT NULL,
-  analysis_id integer NOT NULL,
-  external_db_id integer,
-  identifier varchar(255) NOT NULL,
-  unmapped_reason_id integer NOT NULL,
-  query_score double precision,
-  target_score double precision,
-  ensembl_id integer DEFAULT 0,
-  ensembl_object_type enum DEFAULT 'RawContig',
-  parent varchar(255)
+CREATE TABLE "unmapped_object" (
+  "unmapped_object_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "type" enum NOT NULL,
+  "analysis_id" integer NOT NULL,
+  "external_db_id" integer,
+  "identifier" varchar(255) NOT NULL,
+  "unmapped_reason_id" integer NOT NULL,
+  "query_score" double precision,
+  "target_score" double precision,
+  "ensembl_id" integer DEFAULT 0,
+  "ensembl_object_type" enum DEFAULT 'RawContig',
+  "parent" varchar(255)
 );
 
-CREATE UNIQUE INDEX unique_unmapped_obj_idx ON unmapped_object (ensembl_id, ensembl_object_type, identifier, unmapped_reason_id, parent, external_db_id);
+CREATE UNIQUE INDEX "unique_unmapped_obj_idx" ON "unmapped_object" ("ensembl_id", "ensembl_object_type", "identifier", "unmapped_reason_id", "parent", "external_db_id");
 
 --
--- Table: unmapped_reason
+-- Table: "unmapped_reason"
 --
-CREATE TABLE unmapped_reason (
-  unmapped_reason_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  summary_description varchar(255),
-  full_description varchar(255)
+CREATE TABLE "unmapped_reason" (
+  "unmapped_reason_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "summary_description" varchar(255),
+  "full_description" varchar(255)
 );
 
 --
--- Table: xref
+-- Table: "xref"
 --
-CREATE TABLE xref (
-  xref_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  external_db_id integer NOT NULL,
-  dbprimary_acc varchar(512) NOT NULL,
-  display_label varchar(512) NOT NULL,
-  version varchar(10),
-  description text,
-  info_type enum NOT NULL DEFAULT 'NONE',
-  info_text varchar(255) NOT NULL DEFAULT ''
+CREATE TABLE "xref" (
+  "xref_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "external_db_id" integer NOT NULL,
+  "dbprimary_acc" varchar(512) NOT NULL,
+  "display_label" varchar(512) NOT NULL,
+  "version" varchar(10),
+  "description" text,
+  "info_type" enum NOT NULL DEFAULT 'NONE',
+  "info_text" varchar(255) NOT NULL DEFAULT ''
 );
 
-CREATE UNIQUE INDEX id_index ON xref (dbprimary_acc, external_db_id, info_type, info_text, version);
+CREATE UNIQUE INDEX "id_index" ON "xref" ("dbprimary_acc", "external_db_id", "info_type", "info_text", "version");
 
 COMMIT;
diff --git a/modules/t/test-genome-DBs/homo_sapiens/core/SQLite/table.sql b/modules/t/test-genome-DBs/homo_sapiens/core/SQLite/table.sql
index 9d7aa40c7da7cc7ced78a9fbe8acc177824e5875..259488a62a63e10e9062da58ad7e97d2644ec7d7 100644
--- a/modules/t/test-genome-DBs/homo_sapiens/core/SQLite/table.sql
+++ b/modules/t/test-genome-DBs/homo_sapiens/core/SQLite/table.sql
@@ -1,1002 +1,1002 @@
 -- 
 -- Created by SQL::Translator::Producer::SQLite
--- Created on Thu Jun 28 16:50:58 2018
+-- Created on Wed Sep 26 12:06:31 2018
 -- 
 
 BEGIN TRANSACTION;
 
 --
--- Table: alt_allele
+-- Table: "alt_allele"
 --
-CREATE TABLE alt_allele (
-  alt_allele_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  alt_allele_group_id integer NOT NULL,
-  gene_id integer NOT NULL
+CREATE TABLE "alt_allele" (
+  "alt_allele_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "alt_allele_group_id" integer NOT NULL,
+  "gene_id" integer NOT NULL
 );
 
-CREATE UNIQUE INDEX gene_idx ON alt_allele (gene_id);
+CREATE UNIQUE INDEX "gene_idx" ON "alt_allele" ("gene_id");
 
 --
--- Table: alt_allele_attrib
+-- Table: "alt_allele_attrib"
 --
-CREATE TABLE alt_allele_attrib (
-  alt_allele_id integer,
-  attrib enum
+CREATE TABLE "alt_allele_attrib" (
+  "alt_allele_id" integer,
+  "attrib" enum
 );
 
 --
--- Table: alt_allele_group
+-- Table: "alt_allele_group"
 --
-CREATE TABLE alt_allele_group (
-  alt_allele_group_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL
+CREATE TABLE "alt_allele_group" (
+  "alt_allele_group_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL
 );
 
 --
--- Table: analysis
+-- Table: "analysis"
 --
-CREATE TABLE analysis (
-  analysis_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  created datetime,
-  logic_name varchar(40) NOT NULL DEFAULT '',
-  db varchar(120),
-  db_version varchar(40),
-  db_file varchar(120),
-  program varchar(80),
-  program_version varchar(40),
-  program_file varchar(80),
-  parameters text,
-  module varchar(80),
-  module_version varchar(40),
-  gff_source varchar(40),
-  gff_feature varchar(40)
+CREATE TABLE "analysis" (
+  "analysis_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "created" datetime,
+  "logic_name" varchar(40) NOT NULL DEFAULT '',
+  "db" varchar(120),
+  "db_version" varchar(40),
+  "db_file" varchar(120),
+  "program" varchar(80),
+  "program_version" varchar(40),
+  "program_file" varchar(80),
+  "parameters" text,
+  "module" varchar(80),
+  "module_version" varchar(40),
+  "gff_source" varchar(40),
+  "gff_feature" varchar(40)
 );
 
-CREATE UNIQUE INDEX logic_name_idx ON analysis (logic_name);
+CREATE UNIQUE INDEX "logic_name_idx" ON "analysis" ("logic_name");
 
 --
--- Table: analysis_description
+-- Table: "analysis_description"
 --
-CREATE TABLE analysis_description (
-  analysis_id integer NOT NULL DEFAULT 0,
-  description text,
-  display_label varchar(255),
-  displayable tinyint NOT NULL DEFAULT 1,
-  web_data text
+CREATE TABLE "analysis_description" (
+  "analysis_id" integer NOT NULL DEFAULT 0,
+  "description" text,
+  "display_label" varchar(255),
+  "displayable" tinyint NOT NULL DEFAULT 1,
+  "web_data" text
 );
 
-CREATE UNIQUE INDEX analysis_idx ON analysis_description (analysis_id);
+CREATE UNIQUE INDEX "analysis_idx" ON "analysis_description" ("analysis_id");
 
 --
--- Table: assembly
+-- Table: "assembly"
 --
-CREATE TABLE assembly (
-  asm_seq_region_id integer NOT NULL DEFAULT 0,
-  cmp_seq_region_id integer NOT NULL DEFAULT 0,
-  asm_start integer NOT NULL DEFAULT 0,
-  asm_end integer NOT NULL DEFAULT 0,
-  cmp_start integer NOT NULL DEFAULT 0,
-  cmp_end integer NOT NULL DEFAULT 0,
-  ori tinyint NOT NULL DEFAULT 0
+CREATE TABLE "assembly" (
+  "asm_seq_region_id" integer NOT NULL DEFAULT 0,
+  "cmp_seq_region_id" integer NOT NULL DEFAULT 0,
+  "asm_start" integer NOT NULL DEFAULT 0,
+  "asm_end" integer NOT NULL DEFAULT 0,
+  "cmp_start" integer NOT NULL DEFAULT 0,
+  "cmp_end" integer NOT NULL DEFAULT 0,
+  "ori" tinyint NOT NULL DEFAULT 0
 );
 
-CREATE UNIQUE INDEX all_idx ON assembly (asm_seq_region_id, cmp_seq_region_id, asm_start, asm_end, cmp_start, cmp_end, ori);
+CREATE UNIQUE INDEX "all_idx" ON "assembly" ("asm_seq_region_id", "cmp_seq_region_id", "asm_start", "asm_end", "cmp_start", "cmp_end", "ori");
 
 --
--- Table: assembly_exception
+-- Table: "assembly_exception"
 --
-CREATE TABLE assembly_exception (
-  assembly_exception_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  exc_type enum NOT NULL DEFAULT 'HAP',
-  exc_seq_region_id integer NOT NULL DEFAULT 0,
-  exc_seq_region_start integer NOT NULL DEFAULT 0,
-  exc_seq_region_end integer NOT NULL DEFAULT 0,
-  ori integer NOT NULL DEFAULT 0
+CREATE TABLE "assembly_exception" (
+  "assembly_exception_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "exc_type" enum NOT NULL DEFAULT 'HAP',
+  "exc_seq_region_id" integer NOT NULL DEFAULT 0,
+  "exc_seq_region_start" integer NOT NULL DEFAULT 0,
+  "exc_seq_region_end" integer NOT NULL DEFAULT 0,
+  "ori" integer NOT NULL DEFAULT 0
 );
 
 --
--- Table: associated_group
+-- Table: "associated_group"
 --
-CREATE TABLE associated_group (
-  associated_group_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  description varchar(128)
+CREATE TABLE "associated_group" (
+  "associated_group_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "description" varchar(128)
 );
 
 --
--- Table: associated_xref
+-- Table: "associated_xref"
 --
-CREATE TABLE associated_xref (
-  associated_xref_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  object_xref_id integer NOT NULL DEFAULT 0,
-  xref_id integer NOT NULL DEFAULT 0,
-  source_xref_id integer,
-  condition_type varchar(128),
-  associated_group_id integer,
-  rank integer DEFAULT 0
+CREATE TABLE "associated_xref" (
+  "associated_xref_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "object_xref_id" integer NOT NULL DEFAULT 0,
+  "xref_id" integer NOT NULL DEFAULT 0,
+  "source_xref_id" integer,
+  "condition_type" varchar(128),
+  "associated_group_id" integer,
+  "rank" integer DEFAULT 0
 );
 
-CREATE UNIQUE INDEX object_associated_source_type_idx ON associated_xref (object_xref_id, xref_id, source_xref_id, condition_type, associated_group_id);
+CREATE UNIQUE INDEX "object_associated_source_type_idx" ON "associated_xref" ("object_xref_id", "xref_id", "source_xref_id", "condition_type", "associated_group_id");
 
 --
--- Table: attrib_type
+-- Table: "attrib_type"
 --
-CREATE TABLE attrib_type (
-  attrib_type_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  code varchar(20) NOT NULL DEFAULT '',
-  name varchar(255) NOT NULL DEFAULT '',
-  description text
+CREATE TABLE "attrib_type" (
+  "attrib_type_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "code" varchar(20) NOT NULL DEFAULT '',
+  "name" varchar(255) NOT NULL DEFAULT '',
+  "description" text
 );
 
-CREATE UNIQUE INDEX code_idx ON attrib_type (code);
+CREATE UNIQUE INDEX "code_idx" ON "attrib_type" ("code");
 
 --
--- Table: biotype
+-- Table: "biotype"
 --
-CREATE TABLE biotype (
-  biotype_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  name varchar(64) NOT NULL,
-  object_type enum NOT NULL DEFAULT 'gene',
-  db_type varchar NOT NULL DEFAULT 'core',
-  attrib_type_id integer,
-  description text,
-  biotype_group enum,
-  so_acc varchar(64)
+CREATE TABLE "biotype" (
+  "biotype_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "name" varchar(64) NOT NULL,
+  "object_type" enum NOT NULL DEFAULT 'gene',
+  "db_type" varchar NOT NULL DEFAULT 'core',
+  "attrib_type_id" integer,
+  "description" text,
+  "biotype_group" enum,
+  "so_acc" varchar(64)
 );
 
-CREATE UNIQUE INDEX name_type_idx ON biotype (name, object_type);
+CREATE UNIQUE INDEX "name_type_idx" ON "biotype" ("name", "object_type");
 
 --
--- Table: coord_system
+-- Table: "coord_system"
 --
-CREATE TABLE coord_system (
-  coord_system_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  species_id integer NOT NULL DEFAULT 1,
-  name varchar(40) NOT NULL,
-  version varchar(255),
-  rank integer NOT NULL,
-  attrib varchar
+CREATE TABLE "coord_system" (
+  "coord_system_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "species_id" integer NOT NULL DEFAULT 1,
+  "name" varchar(40) NOT NULL,
+  "version" varchar(255),
+  "rank" integer NOT NULL,
+  "attrib" varchar
 );
 
-CREATE UNIQUE INDEX name_idx ON coord_system (name, version, species_id);
+CREATE UNIQUE INDEX "name_idx" ON "coord_system" ("name", "version", "species_id");
 
-CREATE UNIQUE INDEX rank_idx ON coord_system (rank, species_id);
+CREATE UNIQUE INDEX "rank_idx" ON "coord_system" ("rank", "species_id");
 
 --
--- Table: data_file
+-- Table: "data_file"
 --
-CREATE TABLE data_file (
-  data_file_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  coord_system_id integer NOT NULL,
-  analysis_id smallint NOT NULL,
-  name varchar(100) NOT NULL,
-  version_lock tinyint NOT NULL DEFAULT 0,
-  absolute tinyint NOT NULL DEFAULT 0,
-  url text,
-  file_type enum
+CREATE TABLE "data_file" (
+  "data_file_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "coord_system_id" integer NOT NULL,
+  "analysis_id" smallint NOT NULL,
+  "name" varchar(100) NOT NULL,
+  "version_lock" tinyint NOT NULL DEFAULT 0,
+  "absolute" tinyint NOT NULL DEFAULT 0,
+  "url" text,
+  "file_type" enum
 );
 
-CREATE UNIQUE INDEX df_unq_idx ON data_file (coord_system_id, analysis_id, name, file_type);
+CREATE UNIQUE INDEX "df_unq_idx" ON "data_file" ("coord_system_id", "analysis_id", "name", "file_type");
 
 --
--- Table: density_feature
+-- Table: "density_feature"
 --
-CREATE TABLE density_feature (
-  density_feature_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  density_type_id integer NOT NULL DEFAULT 0,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  density_value float NOT NULL DEFAULT 0
+CREATE TABLE "density_feature" (
+  "density_feature_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "density_type_id" integer NOT NULL DEFAULT 0,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "density_value" float NOT NULL DEFAULT 0
 );
 
 --
--- Table: density_type
+-- Table: "density_type"
 --
-CREATE TABLE density_type (
-  density_type_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  analysis_id integer NOT NULL DEFAULT 0,
-  block_size integer NOT NULL DEFAULT 0,
-  region_features integer NOT NULL DEFAULT 0,
-  value_type enum NOT NULL DEFAULT 'sum'
+CREATE TABLE "density_type" (
+  "density_type_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "analysis_id" integer NOT NULL DEFAULT 0,
+  "block_size" integer NOT NULL DEFAULT 0,
+  "region_features" integer NOT NULL DEFAULT 0,
+  "value_type" enum NOT NULL DEFAULT 'sum'
 );
 
-CREATE UNIQUE INDEX analysis_id ON density_type (analysis_id, block_size, region_features);
+CREATE UNIQUE INDEX "analysis_id" ON "density_type" ("analysis_id", "block_size", "region_features");
 
 --
--- Table: dependent_xref
+-- Table: "dependent_xref"
 --
-CREATE TABLE dependent_xref (
-  object_xref_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  master_xref_id integer NOT NULL,
-  dependent_xref_id integer NOT NULL
+CREATE TABLE "dependent_xref" (
+  "object_xref_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "master_xref_id" integer NOT NULL,
+  "dependent_xref_id" integer NOT NULL
 );
 
 --
--- Table: ditag
+-- Table: "ditag"
 --
-CREATE TABLE ditag (
-  ditag_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  name varchar(30),
-  type varchar(30),
-  tag_count smallint DEFAULT 1,
-  sequence text
+CREATE TABLE "ditag" (
+  "ditag_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "name" varchar(30),
+  "type" varchar(30),
+  "tag_count" smallint DEFAULT 1,
+  "sequence" text
 );
 
 --
--- Table: ditag_feature
+-- Table: "ditag_feature"
 --
-CREATE TABLE ditag_feature (
-  ditag_feature_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  ditag_id integer NOT NULL DEFAULT 0,
-  ditag_pair_id integer NOT NULL DEFAULT 0,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  seq_region_strand tinyint NOT NULL DEFAULT 0,
-  analysis_id integer NOT NULL DEFAULT 0,
-  hit_start integer NOT NULL DEFAULT 0,
-  hit_end integer NOT NULL DEFAULT 0,
-  hit_strand tinyint NOT NULL DEFAULT 0,
-  cigar_line text,
-  ditag_side char(1) DEFAULT ''
+CREATE TABLE "ditag_feature" (
+  "ditag_feature_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "ditag_id" integer NOT NULL DEFAULT 0,
+  "ditag_pair_id" integer NOT NULL DEFAULT 0,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "seq_region_strand" tinyint NOT NULL DEFAULT 0,
+  "analysis_id" integer NOT NULL DEFAULT 0,
+  "hit_start" integer NOT NULL DEFAULT 0,
+  "hit_end" integer NOT NULL DEFAULT 0,
+  "hit_strand" tinyint NOT NULL DEFAULT 0,
+  "cigar_line" text,
+  "ditag_side" char(1) DEFAULT ''
 );
 
 --
--- Table: dna
+-- Table: "dna"
 --
-CREATE TABLE dna (
-  seq_region_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL DEFAULT 0,
-  sequence mediumtext NOT NULL
+CREATE TABLE "dna" (
+  "seq_region_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL DEFAULT 0,
+  "sequence" mediumtext NOT NULL
 );
 
 --
--- Table: dna_align_feature
+-- Table: "dna_align_feature"
 --
-CREATE TABLE dna_align_feature (
-  dna_align_feature_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  seq_region_strand tinyint NOT NULL DEFAULT 0,
-  hit_start integer NOT NULL DEFAULT 0,
-  hit_end integer NOT NULL DEFAULT 0,
-  hit_strand tinyint NOT NULL DEFAULT 0,
-  hit_name varchar(40) NOT NULL DEFAULT '',
-  analysis_id integer NOT NULL DEFAULT 0,
-  score double precision,
-  evalue double precision,
-  perc_ident float,
-  cigar_line text,
-  external_db_id smallint,
-  hcoverage double precision,
-  align_type enum DEFAULT 'ensembl'
+CREATE TABLE "dna_align_feature" (
+  "dna_align_feature_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "seq_region_strand" tinyint NOT NULL DEFAULT 0,
+  "hit_start" integer NOT NULL DEFAULT 0,
+  "hit_end" integer NOT NULL DEFAULT 0,
+  "hit_strand" tinyint NOT NULL DEFAULT 0,
+  "hit_name" varchar(40) NOT NULL DEFAULT '',
+  "analysis_id" integer NOT NULL DEFAULT 0,
+  "score" double precision,
+  "evalue" double precision,
+  "perc_ident" float,
+  "cigar_line" text,
+  "external_db_id" smallint,
+  "hcoverage" double precision,
+  "align_type" enum DEFAULT 'ensembl'
 );
 
 --
--- Table: dna_align_feature_attrib
+-- Table: "dna_align_feature_attrib"
 --
-CREATE TABLE dna_align_feature_attrib (
-  dna_align_feature_id integer NOT NULL,
-  attrib_type_id smallint NOT NULL,
-  value text NOT NULL
+CREATE TABLE "dna_align_feature_attrib" (
+  "dna_align_feature_id" integer NOT NULL,
+  "attrib_type_id" smallint NOT NULL,
+  "value" text NOT NULL
 );
 
-CREATE UNIQUE INDEX dna_align_feature_attribx ON dna_align_feature_attrib (dna_align_feature_id, attrib_type_id, value);
+CREATE UNIQUE INDEX "dna_align_feature_attribx" ON "dna_align_feature_attrib" ("dna_align_feature_id", "attrib_type_id", "value");
 
 --
--- Table: exon
+-- Table: "exon"
 --
-CREATE TABLE exon (
-  exon_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL,
-  seq_region_start integer NOT NULL,
-  seq_region_end integer NOT NULL,
-  seq_region_strand tinyint NOT NULL,
-  phase tinyint NOT NULL,
-  end_phase tinyint NOT NULL,
-  is_current tinyint NOT NULL DEFAULT 1,
-  is_constitutive tinyint NOT NULL DEFAULT 0,
-  stable_id varchar(128),
-  version smallint,
-  created_date datetime,
-  modified_date datetime
+CREATE TABLE "exon" (
+  "exon_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL,
+  "seq_region_start" integer NOT NULL,
+  "seq_region_end" integer NOT NULL,
+  "seq_region_strand" tinyint NOT NULL,
+  "phase" tinyint NOT NULL,
+  "end_phase" tinyint NOT NULL,
+  "is_current" tinyint NOT NULL DEFAULT 1,
+  "is_constitutive" tinyint NOT NULL DEFAULT 0,
+  "stable_id" varchar(128),
+  "version" smallint,
+  "created_date" datetime,
+  "modified_date" datetime
 );
 
 --
--- Table: exon_transcript
+-- Table: "exon_transcript"
 --
-CREATE TABLE exon_transcript (
-  exon_id integer NOT NULL DEFAULT 0,
-  transcript_id integer NOT NULL DEFAULT 0,
-  rank integer NOT NULL DEFAULT 0,
-  PRIMARY KEY (exon_id, transcript_id, rank)
+CREATE TABLE "exon_transcript" (
+  "exon_id" integer NOT NULL DEFAULT 0,
+  "transcript_id" integer NOT NULL DEFAULT 0,
+  "rank" integer NOT NULL DEFAULT 0,
+  PRIMARY KEY ("exon_id", "transcript_id", "rank")
 );
 
 --
--- Table: external_db
+-- Table: "external_db"
 --
-CREATE TABLE external_db (
-  external_db_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL DEFAULT 0,
-  db_name varchar(27) NOT NULL DEFAULT '',
-  db_release varchar(40) NOT NULL DEFAULT '',
-  status enum NOT NULL DEFAULT 'KNOWNXREF',
-  priority integer NOT NULL DEFAULT 0,
-  db_display_name varchar(255),
-  type enum,
-  secondary_db_name varchar(255),
-  secondary_db_table varchar(255),
-  description text
+CREATE TABLE "external_db" (
+  "external_db_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL DEFAULT 0,
+  "db_name" varchar(27) NOT NULL DEFAULT '',
+  "db_release" varchar(40) NOT NULL DEFAULT '',
+  "status" enum NOT NULL DEFAULT 'KNOWNXREF',
+  "priority" integer NOT NULL DEFAULT 0,
+  "db_display_name" varchar(255),
+  "type" enum,
+  "secondary_db_name" varchar(255),
+  "secondary_db_table" varchar(255),
+  "description" text
 );
 
-CREATE UNIQUE INDEX db_name_db_release_idx ON external_db (db_name, db_release);
+CREATE UNIQUE INDEX "db_name_db_release_idx" ON "external_db" ("db_name", "db_release");
 
 --
--- Table: external_synonym
+-- Table: "external_synonym"
 --
-CREATE TABLE external_synonym (
-  xref_id integer NOT NULL DEFAULT 0,
-  synonym varchar(40) NOT NULL DEFAULT '',
-  PRIMARY KEY (xref_id, synonym)
+CREATE TABLE "external_synonym" (
+  "xref_id" integer NOT NULL DEFAULT 0,
+  "synonym" varchar(40) NOT NULL DEFAULT '',
+  PRIMARY KEY ("xref_id", "synonym")
 );
 
 --
--- Table: gene
+-- Table: "gene"
 --
-CREATE TABLE gene (
-  gene_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  biotype varchar(40) NOT NULL,
-  analysis_id smallint NOT NULL,
-  seq_region_id integer NOT NULL,
-  seq_region_start integer NOT NULL,
-  seq_region_end integer NOT NULL,
-  seq_region_strand tinyint NOT NULL,
-  display_xref_id integer,
-  source varchar(40) NOT NULL,
-  description text,
-  is_current tinyint NOT NULL DEFAULT 1,
-  canonical_transcript_id integer NOT NULL,
-  stable_id varchar(128),
-  version smallint,
-  created_date datetime,
-  modified_date datetime
+CREATE TABLE "gene" (
+  "gene_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "biotype" varchar(40) NOT NULL,
+  "analysis_id" smallint NOT NULL,
+  "seq_region_id" integer NOT NULL,
+  "seq_region_start" integer NOT NULL,
+  "seq_region_end" integer NOT NULL,
+  "seq_region_strand" tinyint NOT NULL,
+  "display_xref_id" integer,
+  "source" varchar(40) NOT NULL,
+  "description" text,
+  "is_current" tinyint NOT NULL DEFAULT 1,
+  "canonical_transcript_id" integer NOT NULL,
+  "stable_id" varchar(128),
+  "version" smallint,
+  "created_date" datetime,
+  "modified_date" datetime
 );
 
 --
--- Table: gene_archive
+-- Table: "gene_archive"
 --
-CREATE TABLE gene_archive (
-  gene_stable_id varchar(128) NOT NULL DEFAULT '',
-  gene_version smallint NOT NULL DEFAULT 0,
-  transcript_stable_id varchar(128) NOT NULL DEFAULT '',
-  transcript_version smallint NOT NULL DEFAULT 0,
-  translation_stable_id varchar(128) NOT NULL DEFAULT '',
-  translation_version smallint NOT NULL DEFAULT 0,
-  peptide_archive_id integer NOT NULL DEFAULT 0,
-  mapping_session_id integer NOT NULL DEFAULT 0
+CREATE TABLE "gene_archive" (
+  "gene_stable_id" varchar(128) NOT NULL DEFAULT '',
+  "gene_version" smallint NOT NULL DEFAULT 0,
+  "transcript_stable_id" varchar(128) NOT NULL DEFAULT '',
+  "transcript_version" smallint NOT NULL DEFAULT 0,
+  "translation_stable_id" varchar(128) NOT NULL DEFAULT '',
+  "translation_version" smallint NOT NULL DEFAULT 0,
+  "peptide_archive_id" integer NOT NULL DEFAULT 0,
+  "mapping_session_id" integer NOT NULL DEFAULT 0
 );
 
 --
--- Table: gene_attrib
+-- Table: "gene_attrib"
 --
-CREATE TABLE gene_attrib (
-  gene_id integer NOT NULL DEFAULT 0,
-  attrib_type_id smallint NOT NULL DEFAULT 0,
-  value text NOT NULL
+CREATE TABLE "gene_attrib" (
+  "gene_id" integer NOT NULL DEFAULT 0,
+  "attrib_type_id" smallint NOT NULL DEFAULT 0,
+  "value" text NOT NULL
 );
 
-CREATE UNIQUE INDEX gene_attribx ON gene_attrib (gene_id, attrib_type_id, value);
+CREATE UNIQUE INDEX "gene_attribx" ON "gene_attrib" ("gene_id", "attrib_type_id", "value");
 
 --
--- Table: genome_statistics
+-- Table: "genome_statistics"
 --
-CREATE TABLE genome_statistics (
-  genome_statistics_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  statistic varchar(128) NOT NULL,
-  value bigint NOT NULL DEFAULT 0,
-  species_id integer DEFAULT 1,
-  attrib_type_id integer,
-  timestamp datetime
+CREATE TABLE "genome_statistics" (
+  "genome_statistics_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "statistic" varchar(128) NOT NULL,
+  "value" bigint NOT NULL DEFAULT 0,
+  "species_id" integer DEFAULT 1,
+  "attrib_type_id" integer,
+  "timestamp" datetime
 );
 
-CREATE UNIQUE INDEX stats_uniq ON genome_statistics (statistic, attrib_type_id, species_id);
+CREATE UNIQUE INDEX "stats_uniq" ON "genome_statistics" ("statistic", "attrib_type_id", "species_id");
 
 --
--- Table: identity_xref
+-- Table: "identity_xref"
 --
-CREATE TABLE identity_xref (
-  object_xref_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL DEFAULT 0,
-  xref_identity integer,
-  ensembl_identity integer,
-  xref_start integer,
-  xref_end integer,
-  ensembl_start integer,
-  ensembl_end integer,
-  cigar_line text,
-  score double precision,
-  evalue double precision
+CREATE TABLE "identity_xref" (
+  "object_xref_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL DEFAULT 0,
+  "xref_identity" integer,
+  "ensembl_identity" integer,
+  "xref_start" integer,
+  "xref_end" integer,
+  "ensembl_start" integer,
+  "ensembl_end" integer,
+  "cigar_line" text,
+  "score" double precision,
+  "evalue" double precision
 );
 
 --
--- Table: interpro
+-- Table: "interpro"
 --
-CREATE TABLE interpro (
-  interpro_ac varchar(40) NOT NULL DEFAULT '',
-  id varchar(40) NOT NULL
+CREATE TABLE "interpro" (
+  "interpro_ac" varchar(40) NOT NULL DEFAULT '',
+  "id" varchar(40) NOT NULL
 );
 
-CREATE UNIQUE INDEX accession_idx ON interpro (interpro_ac, id);
+CREATE UNIQUE INDEX "accession_idx" ON "interpro" ("interpro_ac", "id");
 
 --
--- Table: intron_supporting_evidence
+-- Table: "intron_supporting_evidence"
 --
-CREATE TABLE intron_supporting_evidence (
-  intron_supporting_evidence_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  analysis_id smallint NOT NULL,
-  seq_region_id integer NOT NULL,
-  seq_region_start integer NOT NULL,
-  seq_region_end integer NOT NULL,
-  seq_region_strand tinyint NOT NULL,
-  hit_name varchar(100) NOT NULL,
-  score decimal(10,3),
-  score_type enum DEFAULT 'NONE',
-  is_splice_canonical tinyint NOT NULL DEFAULT 0
+CREATE TABLE "intron_supporting_evidence" (
+  "intron_supporting_evidence_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "analysis_id" smallint NOT NULL,
+  "seq_region_id" integer NOT NULL,
+  "seq_region_start" integer NOT NULL,
+  "seq_region_end" integer NOT NULL,
+  "seq_region_strand" tinyint NOT NULL,
+  "hit_name" varchar(100) NOT NULL,
+  "score" decimal(10,3),
+  "score_type" enum DEFAULT 'NONE',
+  "is_splice_canonical" tinyint NOT NULL DEFAULT 0
 );
 
-CREATE UNIQUE INDEX analysis_id02 ON intron_supporting_evidence (analysis_id, seq_region_id, seq_region_start, seq_region_end, seq_region_strand, hit_name);
+CREATE UNIQUE INDEX "analysis_id02" ON "intron_supporting_evidence" ("analysis_id", "seq_region_id", "seq_region_start", "seq_region_end", "seq_region_strand", "hit_name");
 
 --
--- Table: karyotype
+-- Table: "karyotype"
 --
-CREATE TABLE karyotype (
-  karyotype_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  band varchar(40),
-  stain varchar(40)
+CREATE TABLE "karyotype" (
+  "karyotype_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "band" varchar(40),
+  "stain" varchar(40)
 );
 
 --
--- Table: map
+-- Table: "map"
 --
-CREATE TABLE map (
-  map_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  map_name varchar(30) NOT NULL DEFAULT ''
+CREATE TABLE "map" (
+  "map_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "map_name" varchar(30) NOT NULL DEFAULT ''
 );
 
 --
--- Table: mapping_session
+-- Table: "mapping_session"
 --
-CREATE TABLE mapping_session (
-  mapping_session_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  old_db_name varchar(80) NOT NULL DEFAULT '',
-  new_db_name varchar(80) NOT NULL DEFAULT '',
-  old_release varchar(5) NOT NULL DEFAULT '',
-  new_release varchar(5) NOT NULL DEFAULT '',
-  old_assembly varchar(20) NOT NULL DEFAULT '',
-  new_assembly varchar(20) NOT NULL DEFAULT '',
-  created datetime
+CREATE TABLE "mapping_session" (
+  "mapping_session_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "old_db_name" varchar(80) NOT NULL DEFAULT '',
+  "new_db_name" varchar(80) NOT NULL DEFAULT '',
+  "old_release" varchar(5) NOT NULL DEFAULT '',
+  "new_release" varchar(5) NOT NULL DEFAULT '',
+  "old_assembly" varchar(20) NOT NULL DEFAULT '',
+  "new_assembly" varchar(20) NOT NULL DEFAULT '',
+  "created" datetime
 );
 
 --
--- Table: mapping_set
+-- Table: "mapping_set"
 --
-CREATE TABLE mapping_set (
-  mapping_set_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  internal_schema_build varchar(20) NOT NULL,
-  external_schema_build varchar(20) NOT NULL
+CREATE TABLE "mapping_set" (
+  "mapping_set_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "internal_schema_build" varchar(20) NOT NULL,
+  "external_schema_build" varchar(20) NOT NULL
 );
 
-CREATE UNIQUE INDEX mapping_idx ON mapping_set (internal_schema_build, external_schema_build);
+CREATE UNIQUE INDEX "mapping_idx" ON "mapping_set" ("internal_schema_build", "external_schema_build");
 
 --
--- Table: marker
+-- Table: "marker"
 --
-CREATE TABLE marker (
-  marker_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  display_marker_synonym_id integer,
-  left_primer varchar(100) NOT NULL DEFAULT '',
-  right_primer varchar(100) NOT NULL DEFAULT '',
-  min_primer_dist integer NOT NULL DEFAULT 0,
-  max_primer_dist integer NOT NULL DEFAULT 0,
-  priority integer,
-  type enum
+CREATE TABLE "marker" (
+  "marker_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "display_marker_synonym_id" integer,
+  "left_primer" varchar(100) NOT NULL DEFAULT '',
+  "right_primer" varchar(100) NOT NULL DEFAULT '',
+  "min_primer_dist" integer NOT NULL DEFAULT 0,
+  "max_primer_dist" integer NOT NULL DEFAULT 0,
+  "priority" integer,
+  "type" enum
 );
 
 --
--- Table: marker_feature
+-- Table: "marker_feature"
 --
-CREATE TABLE marker_feature (
-  marker_feature_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  marker_id integer NOT NULL DEFAULT 0,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  analysis_id integer NOT NULL DEFAULT 0,
-  map_weight integer
+CREATE TABLE "marker_feature" (
+  "marker_feature_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "marker_id" integer NOT NULL DEFAULT 0,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "analysis_id" integer NOT NULL DEFAULT 0,
+  "map_weight" integer
 );
 
 --
--- Table: marker_map_location
+-- Table: "marker_map_location"
 --
-CREATE TABLE marker_map_location (
-  marker_id integer NOT NULL DEFAULT 0,
-  map_id integer NOT NULL DEFAULT 0,
-  chromosome_name varchar(15) NOT NULL DEFAULT '',
-  marker_synonym_id integer NOT NULL DEFAULT 0,
-  position varchar(15) NOT NULL DEFAULT '',
-  lod_score double precision,
-  PRIMARY KEY (marker_id, map_id)
+CREATE TABLE "marker_map_location" (
+  "marker_id" integer NOT NULL DEFAULT 0,
+  "map_id" integer NOT NULL DEFAULT 0,
+  "chromosome_name" varchar(15) NOT NULL DEFAULT '',
+  "marker_synonym_id" integer NOT NULL DEFAULT 0,
+  "position" varchar(15) NOT NULL DEFAULT '',
+  "lod_score" double precision,
+  PRIMARY KEY ("marker_id", "map_id")
 );
 
 --
--- Table: marker_synonym
+-- Table: "marker_synonym"
 --
-CREATE TABLE marker_synonym (
-  marker_synonym_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  marker_id integer NOT NULL DEFAULT 0,
-  source varchar(20),
-  name varchar(30)
+CREATE TABLE "marker_synonym" (
+  "marker_synonym_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "marker_id" integer NOT NULL DEFAULT 0,
+  "source" varchar(20),
+  "name" varchar(30)
 );
 
 --
--- Table: meta
+-- Table: "meta"
 --
-CREATE TABLE meta (
-  meta_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  species_id integer DEFAULT 1,
-  meta_key varchar(40) NOT NULL,
-  meta_value varchar(255) NOT NULL
+CREATE TABLE "meta" (
+  "meta_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "species_id" integer DEFAULT 1,
+  "meta_key" varchar(40) NOT NULL,
+  "meta_value" varchar(255) NOT NULL
 );
 
-CREATE UNIQUE INDEX species_key_value_idx ON meta (species_id, meta_key, meta_value);
+CREATE UNIQUE INDEX "species_key_value_idx" ON "meta" ("species_id", "meta_key", "meta_value");
 
 --
--- Table: meta_coord
+-- Table: "meta_coord"
 --
-CREATE TABLE meta_coord (
-  table_name varchar(40) NOT NULL DEFAULT '',
-  coord_system_id integer NOT NULL DEFAULT 0,
-  max_length integer
+CREATE TABLE "meta_coord" (
+  "table_name" varchar(40) NOT NULL DEFAULT '',
+  "coord_system_id" integer NOT NULL DEFAULT 0,
+  "max_length" integer
 );
 
-CREATE UNIQUE INDEX cs_table_name_idx ON meta_coord (coord_system_id, table_name);
+CREATE UNIQUE INDEX "cs_table_name_idx" ON "meta_coord" ("coord_system_id", "table_name");
 
 --
--- Table: misc_attrib
+-- Table: "misc_attrib"
 --
-CREATE TABLE misc_attrib (
-  misc_feature_id integer NOT NULL DEFAULT 0,
-  attrib_type_id smallint NOT NULL DEFAULT 0,
-  value text NOT NULL
+CREATE TABLE "misc_attrib" (
+  "misc_feature_id" integer NOT NULL DEFAULT 0,
+  "attrib_type_id" smallint NOT NULL DEFAULT 0,
+  "value" text NOT NULL
 );
 
-CREATE UNIQUE INDEX misc_attribx ON misc_attrib (misc_feature_id, attrib_type_id, value);
+CREATE UNIQUE INDEX "misc_attribx" ON "misc_attrib" ("misc_feature_id", "attrib_type_id", "value");
 
 --
--- Table: misc_feature
+-- Table: "misc_feature"
 --
-CREATE TABLE misc_feature (
-  misc_feature_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  seq_region_strand tinyint NOT NULL DEFAULT 0
+CREATE TABLE "misc_feature" (
+  "misc_feature_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "seq_region_strand" tinyint NOT NULL DEFAULT 0
 );
 
 --
--- Table: misc_feature_misc_set
+-- Table: "misc_feature_misc_set"
 --
-CREATE TABLE misc_feature_misc_set (
-  misc_feature_id integer NOT NULL DEFAULT 0,
-  misc_set_id smallint NOT NULL DEFAULT 0,
-  PRIMARY KEY (misc_feature_id, misc_set_id)
+CREATE TABLE "misc_feature_misc_set" (
+  "misc_feature_id" integer NOT NULL DEFAULT 0,
+  "misc_set_id" smallint NOT NULL DEFAULT 0,
+  PRIMARY KEY ("misc_feature_id", "misc_set_id")
 );
 
 --
--- Table: misc_set
+-- Table: "misc_set"
 --
-CREATE TABLE misc_set (
-  misc_set_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  code varchar(25) NOT NULL DEFAULT '',
-  name varchar(255) NOT NULL DEFAULT '',
-  description text NOT NULL,
-  max_length integer NOT NULL DEFAULT 0
+CREATE TABLE "misc_set" (
+  "misc_set_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "code" varchar(25) NOT NULL DEFAULT '',
+  "name" varchar(255) NOT NULL DEFAULT '',
+  "description" text NOT NULL,
+  "max_length" integer NOT NULL DEFAULT 0
 );
 
-CREATE UNIQUE INDEX code_idx02 ON misc_set (code);
+CREATE UNIQUE INDEX "code_idx02" ON "misc_set" ("code");
 
 --
--- Table: object_xref
+-- Table: "object_xref"
 --
-CREATE TABLE object_xref (
-  object_xref_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  ensembl_id integer NOT NULL DEFAULT 0,
-  ensembl_object_type enum NOT NULL DEFAULT 'RawContig',
-  xref_id integer NOT NULL,
-  linkage_annotation varchar(255),
-  analysis_id smallint
+CREATE TABLE "object_xref" (
+  "object_xref_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "ensembl_id" integer NOT NULL DEFAULT 0,
+  "ensembl_object_type" enum NOT NULL DEFAULT 'RawContig',
+  "xref_id" integer NOT NULL,
+  "linkage_annotation" varchar(255),
+  "analysis_id" smallint
 );
 
-CREATE UNIQUE INDEX xref_idx ON object_xref (xref_id, ensembl_object_type, ensembl_id, analysis_id);
+CREATE UNIQUE INDEX "xref_idx" ON "object_xref" ("xref_id", "ensembl_object_type", "ensembl_id", "analysis_id");
 
 --
--- Table: ontology_xref
+-- Table: "ontology_xref"
 --
-CREATE TABLE ontology_xref (
-  object_xref_id integer NOT NULL DEFAULT 0,
-  linkage_type varchar(3),
-  source_xref_id integer
+CREATE TABLE "ontology_xref" (
+  "object_xref_id" integer NOT NULL DEFAULT 0,
+  "linkage_type" varchar(3),
+  "source_xref_id" integer
 );
 
-CREATE UNIQUE INDEX object_source_type_idx ON ontology_xref (object_xref_id, source_xref_id, linkage_type);
+CREATE UNIQUE INDEX "object_source_type_idx" ON "ontology_xref" ("object_xref_id", "source_xref_id", "linkage_type");
 
 --
--- Table: operon
+-- Table: "operon"
 --
-CREATE TABLE operon (
-  operon_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL,
-  seq_region_start integer NOT NULL,
-  seq_region_end integer NOT NULL,
-  seq_region_strand tinyint NOT NULL,
-  display_label varchar(255),
-  analysis_id smallint NOT NULL,
-  stable_id varchar(128),
-  version smallint,
-  created_date datetime,
-  modified_date datetime
+CREATE TABLE "operon" (
+  "operon_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL,
+  "seq_region_start" integer NOT NULL,
+  "seq_region_end" integer NOT NULL,
+  "seq_region_strand" tinyint NOT NULL,
+  "display_label" varchar(255),
+  "analysis_id" smallint NOT NULL,
+  "stable_id" varchar(128),
+  "version" smallint,
+  "created_date" datetime,
+  "modified_date" datetime
 );
 
 --
--- Table: operon_transcript
+-- Table: "operon_transcript"
 --
-CREATE TABLE operon_transcript (
-  operon_transcript_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL,
-  seq_region_start integer NOT NULL,
-  seq_region_end integer NOT NULL,
-  seq_region_strand tinyint NOT NULL,
-  operon_id integer NOT NULL,
-  display_label varchar(255),
-  analysis_id smallint NOT NULL,
-  stable_id varchar(128),
-  version smallint,
-  created_date datetime,
-  modified_date datetime
+CREATE TABLE "operon_transcript" (
+  "operon_transcript_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL,
+  "seq_region_start" integer NOT NULL,
+  "seq_region_end" integer NOT NULL,
+  "seq_region_strand" tinyint NOT NULL,
+  "operon_id" integer NOT NULL,
+  "display_label" varchar(255),
+  "analysis_id" smallint NOT NULL,
+  "stable_id" varchar(128),
+  "version" smallint,
+  "created_date" datetime,
+  "modified_date" datetime
 );
 
 --
--- Table: operon_transcript_gene
+-- Table: "operon_transcript_gene"
 --
-CREATE TABLE operon_transcript_gene (
-  operon_transcript_id integer,
-  gene_id integer
+CREATE TABLE "operon_transcript_gene" (
+  "operon_transcript_id" integer,
+  "gene_id" integer
 );
 
 --
--- Table: peptide_archive
+-- Table: "peptide_archive"
 --
-CREATE TABLE peptide_archive (
-  peptide_archive_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  md5_checksum varchar(32),
-  peptide_seq mediumtext NOT NULL
+CREATE TABLE "peptide_archive" (
+  "peptide_archive_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "md5_checksum" varchar(32),
+  "peptide_seq" mediumtext NOT NULL
 );
 
 --
--- Table: prediction_exon
+-- Table: "prediction_exon"
 --
-CREATE TABLE prediction_exon (
-  prediction_exon_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  prediction_transcript_id integer NOT NULL DEFAULT 0,
-  exon_rank smallint NOT NULL DEFAULT 0,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  seq_region_strand tinyint NOT NULL DEFAULT 0,
-  start_phase tinyint NOT NULL DEFAULT 0,
-  score double precision,
-  p_value double precision
+CREATE TABLE "prediction_exon" (
+  "prediction_exon_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "prediction_transcript_id" integer NOT NULL DEFAULT 0,
+  "exon_rank" smallint NOT NULL DEFAULT 0,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "seq_region_strand" tinyint NOT NULL DEFAULT 0,
+  "start_phase" tinyint NOT NULL DEFAULT 0,
+  "score" double precision,
+  "p_value" double precision
 );
 
 --
--- Table: prediction_transcript
+-- Table: "prediction_transcript"
 --
-CREATE TABLE prediction_transcript (
-  prediction_transcript_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  seq_region_strand tinyint NOT NULL DEFAULT 0,
-  analysis_id integer,
-  display_label varchar(255)
+CREATE TABLE "prediction_transcript" (
+  "prediction_transcript_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "seq_region_strand" tinyint NOT NULL DEFAULT 0,
+  "analysis_id" integer,
+  "display_label" varchar(255)
 );
 
 --
--- Table: protein_align_feature
+-- Table: "protein_align_feature"
 --
-CREATE TABLE protein_align_feature (
-  protein_align_feature_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  seq_region_strand tinyint NOT NULL DEFAULT 1,
-  hit_start integer NOT NULL DEFAULT 0,
-  hit_end integer NOT NULL DEFAULT 0,
-  hit_name varchar(40) NOT NULL DEFAULT '',
-  analysis_id integer NOT NULL DEFAULT 0,
-  score double precision,
-  evalue double precision,
-  perc_ident float,
-  cigar_line text,
-  external_db_id smallint,
-  hcoverage double precision,
-  align_type enum DEFAULT 'ensembl'
+CREATE TABLE "protein_align_feature" (
+  "protein_align_feature_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "seq_region_strand" tinyint NOT NULL DEFAULT 1,
+  "hit_start" integer NOT NULL DEFAULT 0,
+  "hit_end" integer NOT NULL DEFAULT 0,
+  "hit_name" varchar(40) NOT NULL DEFAULT '',
+  "analysis_id" integer NOT NULL DEFAULT 0,
+  "score" double precision,
+  "evalue" double precision,
+  "perc_ident" float,
+  "cigar_line" text,
+  "external_db_id" smallint,
+  "hcoverage" double precision,
+  "align_type" enum DEFAULT 'ensembl'
 );
 
 --
--- Table: protein_feature
+-- Table: "protein_feature"
 --
-CREATE TABLE protein_feature (
-  protein_feature_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  translation_id integer NOT NULL DEFAULT 0,
-  seq_start integer NOT NULL DEFAULT 0,
-  seq_end integer NOT NULL DEFAULT 0,
-  hit_start integer NOT NULL DEFAULT 0,
-  hit_end integer NOT NULL DEFAULT 0,
-  hit_name varchar(40) NOT NULL,
-  analysis_id integer NOT NULL DEFAULT 0,
-  score double precision NOT NULL DEFAULT 0,
-  evalue double precision,
-  perc_ident float,
-  external_data text,
-  hit_description text,
-  cigar_line text,
-  align_type enum
+CREATE TABLE "protein_feature" (
+  "protein_feature_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "translation_id" integer NOT NULL DEFAULT 0,
+  "seq_start" integer NOT NULL DEFAULT 0,
+  "seq_end" integer NOT NULL DEFAULT 0,
+  "hit_start" integer NOT NULL DEFAULT 0,
+  "hit_end" integer NOT NULL DEFAULT 0,
+  "hit_name" varchar(40) NOT NULL,
+  "analysis_id" integer NOT NULL DEFAULT 0,
+  "score" double precision NOT NULL DEFAULT 0,
+  "evalue" double precision,
+  "perc_ident" float,
+  "external_data" text,
+  "hit_description" text,
+  "cigar_line" text,
+  "align_type" enum
 );
 
-CREATE UNIQUE INDEX aln_idx ON protein_feature (translation_id, hit_name, seq_start, seq_end, hit_start, hit_end, analysis_id);
+CREATE UNIQUE INDEX "aln_idx" ON "protein_feature" ("translation_id", "hit_name", "seq_start", "seq_end", "hit_start", "hit_end", "analysis_id");
 
 --
--- Table: repeat_consensus
+-- Table: "repeat_consensus"
 --
-CREATE TABLE repeat_consensus (
-  repeat_consensus_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  repeat_name varchar(255) NOT NULL DEFAULT '',
-  repeat_class varchar(100) NOT NULL DEFAULT '',
-  repeat_type varchar(40) NOT NULL DEFAULT '',
-  repeat_consensus text
+CREATE TABLE "repeat_consensus" (
+  "repeat_consensus_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "repeat_name" varchar(255) NOT NULL DEFAULT '',
+  "repeat_class" varchar(100) NOT NULL DEFAULT '',
+  "repeat_type" varchar(40) NOT NULL DEFAULT '',
+  "repeat_consensus" text
 );
 
 --
--- Table: repeat_feature
+-- Table: "repeat_feature"
 --
-CREATE TABLE repeat_feature (
-  repeat_feature_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  seq_region_strand tinyint NOT NULL DEFAULT 1,
-  repeat_start integer NOT NULL DEFAULT 0,
-  repeat_end integer NOT NULL DEFAULT 0,
-  repeat_consensus_id integer NOT NULL DEFAULT 0,
-  analysis_id integer NOT NULL DEFAULT 0,
-  score double precision
+CREATE TABLE "repeat_feature" (
+  "repeat_feature_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "seq_region_strand" tinyint NOT NULL DEFAULT 1,
+  "repeat_start" integer NOT NULL DEFAULT 0,
+  "repeat_end" integer NOT NULL DEFAULT 0,
+  "repeat_consensus_id" integer NOT NULL DEFAULT 0,
+  "analysis_id" integer NOT NULL DEFAULT 0,
+  "score" double precision
 );
 
 --
--- Table: seq_region
+-- Table: "seq_region"
 --
-CREATE TABLE seq_region (
-  seq_region_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  name varchar(255) NOT NULL,
-  coord_system_id integer NOT NULL DEFAULT 0,
-  length integer NOT NULL DEFAULT 0
+CREATE TABLE "seq_region" (
+  "seq_region_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "name" varchar(255) NOT NULL,
+  "coord_system_id" integer NOT NULL DEFAULT 0,
+  "length" integer NOT NULL DEFAULT 0
 );
 
-CREATE UNIQUE INDEX name_cs_idx ON seq_region (name, coord_system_id);
+CREATE UNIQUE INDEX "name_cs_idx" ON "seq_region" ("name", "coord_system_id");
 
 --
--- Table: seq_region_attrib
+-- Table: "seq_region_attrib"
 --
-CREATE TABLE seq_region_attrib (
-  seq_region_id integer NOT NULL DEFAULT 0,
-  attrib_type_id smallint NOT NULL DEFAULT 0,
-  value text NOT NULL
+CREATE TABLE "seq_region_attrib" (
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "attrib_type_id" smallint NOT NULL DEFAULT 0,
+  "value" text NOT NULL
 );
 
-CREATE UNIQUE INDEX region_attribx ON seq_region_attrib (seq_region_id, attrib_type_id, value);
+CREATE UNIQUE INDEX "region_attribx" ON "seq_region_attrib" ("seq_region_id", "attrib_type_id", "value");
 
 --
--- Table: seq_region_mapping
+-- Table: "seq_region_mapping"
 --
-CREATE TABLE seq_region_mapping (
-  external_seq_region_id integer NOT NULL,
-  internal_seq_region_id integer NOT NULL,
-  mapping_set_id integer NOT NULL
+CREATE TABLE "seq_region_mapping" (
+  "external_seq_region_id" integer NOT NULL,
+  "internal_seq_region_id" integer NOT NULL,
+  "mapping_set_id" integer NOT NULL
 );
 
 --
--- Table: seq_region_synonym
+-- Table: "seq_region_synonym"
 --
-CREATE TABLE seq_region_synonym (
-  seq_region_synonym_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL,
-  synonym varchar(250) NOT NULL,
-  external_db_id smallint
+CREATE TABLE "seq_region_synonym" (
+  "seq_region_synonym_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL,
+  "synonym" varchar(250) NOT NULL,
+  "external_db_id" smallint
 );
 
-CREATE UNIQUE INDEX syn_idx ON seq_region_synonym (synonym, seq_region_id);
+CREATE UNIQUE INDEX "syn_idx" ON "seq_region_synonym" ("synonym", "seq_region_id");
 
 --
--- Table: simple_feature
+-- Table: "simple_feature"
 --
-CREATE TABLE simple_feature (
-  simple_feature_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  seq_region_strand tinyint NOT NULL DEFAULT 0,
-  display_label varchar(40) NOT NULL DEFAULT '',
-  analysis_id integer NOT NULL DEFAULT 0,
-  score double precision
+CREATE TABLE "simple_feature" (
+  "simple_feature_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "seq_region_strand" tinyint NOT NULL DEFAULT 0,
+  "display_label" varchar(40) NOT NULL DEFAULT '',
+  "analysis_id" integer NOT NULL DEFAULT 0,
+  "score" double precision
 );
 
 --
--- Table: stable_id_event
+-- Table: "stable_id_event"
 --
-CREATE TABLE stable_id_event (
-  old_stable_id varchar(128),
-  old_version smallint,
-  new_stable_id varchar(128),
-  new_version smallint,
-  mapping_session_id integer NOT NULL DEFAULT 0,
-  type enum NOT NULL DEFAULT 'gene',
-  score float NOT NULL DEFAULT 0
+CREATE TABLE "stable_id_event" (
+  "old_stable_id" varchar(128),
+  "old_version" smallint,
+  "new_stable_id" varchar(128),
+  "new_version" smallint,
+  "mapping_session_id" integer NOT NULL DEFAULT 0,
+  "type" enum NOT NULL DEFAULT 'gene',
+  "score" float NOT NULL DEFAULT 0
 );
 
-CREATE UNIQUE INDEX uni_idx ON stable_id_event (mapping_session_id, old_stable_id, old_version, new_stable_id, new_version, type);
+CREATE UNIQUE INDEX "uni_idx" ON "stable_id_event" ("mapping_session_id", "old_stable_id", "old_version", "new_stable_id", "new_version", "type");
 
 --
--- Table: supporting_feature
+-- Table: "supporting_feature"
 --
-CREATE TABLE supporting_feature (
-  exon_id integer NOT NULL DEFAULT 0,
-  feature_type enum,
-  feature_id integer NOT NULL DEFAULT 0
+CREATE TABLE "supporting_feature" (
+  "exon_id" integer NOT NULL DEFAULT 0,
+  "feature_type" enum,
+  "feature_id" integer NOT NULL DEFAULT 0
 );
 
-CREATE UNIQUE INDEX all_idx02 ON supporting_feature (exon_id, feature_type, feature_id);
+CREATE UNIQUE INDEX "all_idx02" ON "supporting_feature" ("exon_id", "feature_type", "feature_id");
 
 --
--- Table: transcript
+-- Table: "transcript"
 --
-CREATE TABLE transcript (
-  transcript_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  gene_id integer,
-  analysis_id smallint NOT NULL,
-  seq_region_id integer NOT NULL,
-  seq_region_start integer NOT NULL,
-  seq_region_end integer NOT NULL,
-  seq_region_strand tinyint NOT NULL,
-  display_xref_id integer,
-  source varchar(40) NOT NULL DEFAULT 'ensembl',
-  biotype varchar(40) NOT NULL,
-  description text,
-  is_current tinyint NOT NULL DEFAULT 1,
-  canonical_translation_id integer,
-  stable_id varchar(128),
-  version smallint,
-  created_date datetime,
-  modified_date datetime
+CREATE TABLE "transcript" (
+  "transcript_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "gene_id" integer,
+  "analysis_id" smallint NOT NULL,
+  "seq_region_id" integer NOT NULL,
+  "seq_region_start" integer NOT NULL,
+  "seq_region_end" integer NOT NULL,
+  "seq_region_strand" tinyint NOT NULL,
+  "display_xref_id" integer,
+  "source" varchar(40) NOT NULL DEFAULT 'ensembl',
+  "biotype" varchar(40) NOT NULL,
+  "description" text,
+  "is_current" tinyint NOT NULL DEFAULT 1,
+  "canonical_translation_id" integer,
+  "stable_id" varchar(128),
+  "version" smallint,
+  "created_date" datetime,
+  "modified_date" datetime
 );
 
-CREATE UNIQUE INDEX canonical_translation_idx ON transcript (canonical_translation_id);
+CREATE UNIQUE INDEX "canonical_translation_idx" ON "transcript" ("canonical_translation_id");
 
 --
--- Table: transcript_attrib
+-- Table: "transcript_attrib"
 --
-CREATE TABLE transcript_attrib (
-  transcript_id integer NOT NULL DEFAULT 0,
-  attrib_type_id smallint NOT NULL DEFAULT 0,
-  value text NOT NULL
+CREATE TABLE "transcript_attrib" (
+  "transcript_id" integer NOT NULL DEFAULT 0,
+  "attrib_type_id" smallint NOT NULL DEFAULT 0,
+  "value" text NOT NULL
 );
 
-CREATE UNIQUE INDEX transcript_attribx ON transcript_attrib (transcript_id, attrib_type_id, value);
+CREATE UNIQUE INDEX "transcript_attribx" ON "transcript_attrib" ("transcript_id", "attrib_type_id", "value");
 
 --
--- Table: transcript_intron_supporting_evidence
+-- Table: "transcript_intron_supporting_evidence"
 --
-CREATE TABLE transcript_intron_supporting_evidence (
-  transcript_id integer NOT NULL,
-  intron_supporting_evidence_id integer NOT NULL,
-  previous_exon_id integer NOT NULL,
-  next_exon_id integer NOT NULL,
-  PRIMARY KEY (intron_supporting_evidence_id, transcript_id)
+CREATE TABLE "transcript_intron_supporting_evidence" (
+  "transcript_id" integer NOT NULL,
+  "intron_supporting_evidence_id" integer NOT NULL,
+  "previous_exon_id" integer NOT NULL,
+  "next_exon_id" integer NOT NULL,
+  PRIMARY KEY ("intron_supporting_evidence_id", "transcript_id")
 );
 
 --
--- Table: transcript_supporting_feature
+-- Table: "transcript_supporting_feature"
 --
-CREATE TABLE transcript_supporting_feature (
-  transcript_id integer NOT NULL DEFAULT 0,
-  feature_type enum,
-  feature_id integer NOT NULL DEFAULT 0
+CREATE TABLE "transcript_supporting_feature" (
+  "transcript_id" integer NOT NULL DEFAULT 0,
+  "feature_type" enum,
+  "feature_id" integer NOT NULL DEFAULT 0
 );
 
-CREATE UNIQUE INDEX all_idx03 ON transcript_supporting_feature (transcript_id, feature_type, feature_id);
+CREATE UNIQUE INDEX "all_idx03" ON "transcript_supporting_feature" ("transcript_id", "feature_type", "feature_id");
 
 --
--- Table: translation
+-- Table: "translation"
 --
-CREATE TABLE translation (
-  translation_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  transcript_id integer NOT NULL,
-  seq_start integer NOT NULL,
-  start_exon_id integer NOT NULL,
-  seq_end integer NOT NULL,
-  end_exon_id integer NOT NULL,
-  stable_id varchar(128),
-  version smallint,
-  created_date datetime,
-  modified_date datetime
+CREATE TABLE "translation" (
+  "translation_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "transcript_id" integer NOT NULL,
+  "seq_start" integer NOT NULL,
+  "start_exon_id" integer NOT NULL,
+  "seq_end" integer NOT NULL,
+  "end_exon_id" integer NOT NULL,
+  "stable_id" varchar(128),
+  "version" smallint,
+  "created_date" datetime,
+  "modified_date" datetime
 );
 
 --
--- Table: translation_attrib
+-- Table: "translation_attrib"
 --
-CREATE TABLE translation_attrib (
-  translation_id integer NOT NULL DEFAULT 0,
-  attrib_type_id smallint NOT NULL DEFAULT 0,
-  value text NOT NULL
+CREATE TABLE "translation_attrib" (
+  "translation_id" integer NOT NULL DEFAULT 0,
+  "attrib_type_id" smallint NOT NULL DEFAULT 0,
+  "value" text NOT NULL
 );
 
-CREATE UNIQUE INDEX translation_attribx ON translation_attrib (translation_id, attrib_type_id, value);
+CREATE UNIQUE INDEX "translation_attribx" ON "translation_attrib" ("translation_id", "attrib_type_id", "value");
 
 --
--- Table: unmapped_object
+-- Table: "unmapped_object"
 --
-CREATE TABLE unmapped_object (
-  unmapped_object_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  type enum NOT NULL,
-  analysis_id integer NOT NULL,
-  external_db_id integer,
-  identifier varchar(255) NOT NULL,
-  unmapped_reason_id integer NOT NULL,
-  query_score double precision,
-  target_score double precision,
-  ensembl_id integer DEFAULT 0,
-  ensembl_object_type enum DEFAULT 'RawContig',
-  parent varchar(255)
+CREATE TABLE "unmapped_object" (
+  "unmapped_object_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "type" enum NOT NULL,
+  "analysis_id" integer NOT NULL,
+  "external_db_id" integer,
+  "identifier" varchar(255) NOT NULL,
+  "unmapped_reason_id" integer NOT NULL,
+  "query_score" double precision,
+  "target_score" double precision,
+  "ensembl_id" integer DEFAULT 0,
+  "ensembl_object_type" enum DEFAULT 'RawContig',
+  "parent" varchar(255)
 );
 
-CREATE UNIQUE INDEX unique_unmapped_obj_idx ON unmapped_object (ensembl_id, ensembl_object_type, identifier, unmapped_reason_id, parent, external_db_id);
+CREATE UNIQUE INDEX "unique_unmapped_obj_idx" ON "unmapped_object" ("ensembl_id", "ensembl_object_type", "identifier", "unmapped_reason_id", "parent", "external_db_id");
 
 --
--- Table: unmapped_reason
+-- Table: "unmapped_reason"
 --
-CREATE TABLE unmapped_reason (
-  unmapped_reason_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  summary_description varchar(255),
-  full_description varchar(255)
+CREATE TABLE "unmapped_reason" (
+  "unmapped_reason_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "summary_description" varchar(255),
+  "full_description" varchar(255)
 );
 
 --
--- Table: xref
+-- Table: "xref"
 --
-CREATE TABLE xref (
-  xref_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  external_db_id integer NOT NULL,
-  dbprimary_acc varchar(512) NOT NULL,
-  display_label varchar(512) NOT NULL,
-  version varchar(10),
-  description text,
-  info_type enum NOT NULL DEFAULT 'NONE',
-  info_text varchar(255) NOT NULL DEFAULT ''
+CREATE TABLE "xref" (
+  "xref_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "external_db_id" integer NOT NULL,
+  "dbprimary_acc" varchar(512) NOT NULL,
+  "display_label" varchar(512) NOT NULL,
+  "version" varchar(10),
+  "description" text,
+  "info_type" enum NOT NULL DEFAULT 'NONE',
+  "info_text" varchar(255) NOT NULL DEFAULT ''
 );
 
-CREATE UNIQUE INDEX id_index ON xref (dbprimary_acc, external_db_id, info_type, info_text, version);
+CREATE UNIQUE INDEX "id_index" ON "xref" ("dbprimary_acc", "external_db_id", "info_type", "info_text", "version");
 
 COMMIT;
diff --git a/modules/t/test-genome-DBs/homo_sapiens/empty/SQLite/table.sql b/modules/t/test-genome-DBs/homo_sapiens/empty/SQLite/table.sql
index 3cf4e28e8f52624fbf1bf6b4c13d3deb82ee1b2f..8290a36db072677d9d6bcaf116280b1fb55d9b96 100644
--- a/modules/t/test-genome-DBs/homo_sapiens/empty/SQLite/table.sql
+++ b/modules/t/test-genome-DBs/homo_sapiens/empty/SQLite/table.sql
@@ -1,1002 +1,1002 @@
 -- 
 -- Created by SQL::Translator::Producer::SQLite
--- Created on Thu Jun 28 16:51:08 2018
+-- Created on Wed Sep 26 12:06:39 2018
 -- 
 
 BEGIN TRANSACTION;
 
 --
--- Table: alt_allele
+-- Table: "alt_allele"
 --
-CREATE TABLE alt_allele (
-  alt_allele_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  alt_allele_group_id integer NOT NULL,
-  gene_id integer NOT NULL
+CREATE TABLE "alt_allele" (
+  "alt_allele_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "alt_allele_group_id" integer NOT NULL,
+  "gene_id" integer NOT NULL
 );
 
-CREATE UNIQUE INDEX gene_idx ON alt_allele (gene_id);
+CREATE UNIQUE INDEX "gene_idx" ON "alt_allele" ("gene_id");
 
 --
--- Table: alt_allele_attrib
+-- Table: "alt_allele_attrib"
 --
-CREATE TABLE alt_allele_attrib (
-  alt_allele_id integer,
-  attrib enum
+CREATE TABLE "alt_allele_attrib" (
+  "alt_allele_id" integer,
+  "attrib" enum
 );
 
 --
--- Table: alt_allele_group
+-- Table: "alt_allele_group"
 --
-CREATE TABLE alt_allele_group (
-  alt_allele_group_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL
+CREATE TABLE "alt_allele_group" (
+  "alt_allele_group_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL
 );
 
 --
--- Table: analysis
+-- Table: "analysis"
 --
-CREATE TABLE analysis (
-  analysis_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  created datetime,
-  logic_name varchar(40) NOT NULL DEFAULT '',
-  db varchar(120),
-  db_version varchar(40),
-  db_file varchar(120),
-  program varchar(80),
-  program_version varchar(40),
-  program_file varchar(80),
-  parameters text,
-  module varchar(80),
-  module_version varchar(40),
-  gff_source varchar(40),
-  gff_feature varchar(40)
+CREATE TABLE "analysis" (
+  "analysis_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "created" datetime,
+  "logic_name" varchar(40) NOT NULL DEFAULT '',
+  "db" varchar(120),
+  "db_version" varchar(40),
+  "db_file" varchar(120),
+  "program" varchar(80),
+  "program_version" varchar(40),
+  "program_file" varchar(80),
+  "parameters" text,
+  "module" varchar(80),
+  "module_version" varchar(40),
+  "gff_source" varchar(40),
+  "gff_feature" varchar(40)
 );
 
-CREATE UNIQUE INDEX logic_name_idx ON analysis (logic_name);
+CREATE UNIQUE INDEX "logic_name_idx" ON "analysis" ("logic_name");
 
 --
--- Table: analysis_description
+-- Table: "analysis_description"
 --
-CREATE TABLE analysis_description (
-  analysis_id integer NOT NULL DEFAULT 0,
-  description text,
-  display_label varchar(255),
-  displayable tinyint NOT NULL DEFAULT 1,
-  web_data text
+CREATE TABLE "analysis_description" (
+  "analysis_id" integer NOT NULL DEFAULT 0,
+  "description" text,
+  "display_label" varchar(255),
+  "displayable" tinyint NOT NULL DEFAULT 1,
+  "web_data" text
 );
 
-CREATE UNIQUE INDEX analysis_idx ON analysis_description (analysis_id);
+CREATE UNIQUE INDEX "analysis_idx" ON "analysis_description" ("analysis_id");
 
 --
--- Table: assembly
+-- Table: "assembly"
 --
-CREATE TABLE assembly (
-  asm_seq_region_id integer NOT NULL DEFAULT 0,
-  cmp_seq_region_id integer NOT NULL DEFAULT 0,
-  asm_start integer NOT NULL DEFAULT 0,
-  asm_end integer NOT NULL DEFAULT 0,
-  cmp_start integer NOT NULL DEFAULT 0,
-  cmp_end integer NOT NULL DEFAULT 0,
-  ori tinyint NOT NULL DEFAULT 0
+CREATE TABLE "assembly" (
+  "asm_seq_region_id" integer NOT NULL DEFAULT 0,
+  "cmp_seq_region_id" integer NOT NULL DEFAULT 0,
+  "asm_start" integer NOT NULL DEFAULT 0,
+  "asm_end" integer NOT NULL DEFAULT 0,
+  "cmp_start" integer NOT NULL DEFAULT 0,
+  "cmp_end" integer NOT NULL DEFAULT 0,
+  "ori" tinyint NOT NULL DEFAULT 0
 );
 
-CREATE UNIQUE INDEX all_idx ON assembly (asm_seq_region_id, cmp_seq_region_id, asm_start, asm_end, cmp_start, cmp_end, ori);
+CREATE UNIQUE INDEX "all_idx" ON "assembly" ("asm_seq_region_id", "cmp_seq_region_id", "asm_start", "asm_end", "cmp_start", "cmp_end", "ori");
 
 --
--- Table: assembly_exception
+-- Table: "assembly_exception"
 --
-CREATE TABLE assembly_exception (
-  assembly_exception_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  exc_type enum NOT NULL DEFAULT 'HAP',
-  exc_seq_region_id integer NOT NULL DEFAULT 0,
-  exc_seq_region_start integer NOT NULL DEFAULT 0,
-  exc_seq_region_end integer NOT NULL DEFAULT 0,
-  ori integer NOT NULL DEFAULT 0
+CREATE TABLE "assembly_exception" (
+  "assembly_exception_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "exc_type" enum NOT NULL DEFAULT 'HAP',
+  "exc_seq_region_id" integer NOT NULL DEFAULT 0,
+  "exc_seq_region_start" integer NOT NULL DEFAULT 0,
+  "exc_seq_region_end" integer NOT NULL DEFAULT 0,
+  "ori" integer NOT NULL DEFAULT 0
 );
 
 --
--- Table: associated_group
+-- Table: "associated_group"
 --
-CREATE TABLE associated_group (
-  associated_group_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  description varchar(128)
+CREATE TABLE "associated_group" (
+  "associated_group_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "description" varchar(128)
 );
 
 --
--- Table: associated_xref
+-- Table: "associated_xref"
 --
-CREATE TABLE associated_xref (
-  associated_xref_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  object_xref_id integer NOT NULL DEFAULT 0,
-  xref_id integer NOT NULL DEFAULT 0,
-  source_xref_id integer,
-  condition_type varchar(128),
-  associated_group_id integer,
-  rank integer DEFAULT 0
+CREATE TABLE "associated_xref" (
+  "associated_xref_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "object_xref_id" integer NOT NULL DEFAULT 0,
+  "xref_id" integer NOT NULL DEFAULT 0,
+  "source_xref_id" integer,
+  "condition_type" varchar(128),
+  "associated_group_id" integer,
+  "rank" integer DEFAULT 0
 );
 
-CREATE UNIQUE INDEX object_associated_source_type_idx ON associated_xref (object_xref_id, xref_id, source_xref_id, condition_type, associated_group_id);
+CREATE UNIQUE INDEX "object_associated_source_type_idx" ON "associated_xref" ("object_xref_id", "xref_id", "source_xref_id", "condition_type", "associated_group_id");
 
 --
--- Table: attrib_type
+-- Table: "attrib_type"
 --
-CREATE TABLE attrib_type (
-  attrib_type_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  code varchar(20) NOT NULL DEFAULT '',
-  name varchar(255) NOT NULL DEFAULT '',
-  description text
+CREATE TABLE "attrib_type" (
+  "attrib_type_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "code" varchar(20) NOT NULL DEFAULT '',
+  "name" varchar(255) NOT NULL DEFAULT '',
+  "description" text
 );
 
-CREATE UNIQUE INDEX code_idx ON attrib_type (code);
+CREATE UNIQUE INDEX "code_idx" ON "attrib_type" ("code");
 
 --
--- Table: biotype
+-- Table: "biotype"
 --
-CREATE TABLE biotype (
-  biotype_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  name varchar(64) NOT NULL,
-  object_type enum NOT NULL DEFAULT 'gene',
-  db_type varchar NOT NULL DEFAULT 'core',
-  attrib_type_id integer,
-  description text,
-  biotype_group enum,
-  so_acc varchar(64)
+CREATE TABLE "biotype" (
+  "biotype_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "name" varchar(64) NOT NULL,
+  "object_type" enum NOT NULL DEFAULT 'gene',
+  "db_type" varchar NOT NULL DEFAULT 'core',
+  "attrib_type_id" integer,
+  "description" text,
+  "biotype_group" enum,
+  "so_acc" varchar(64)
 );
 
-CREATE UNIQUE INDEX name_type_idx ON biotype (name, object_type);
+CREATE UNIQUE INDEX "name_type_idx" ON "biotype" ("name", "object_type");
 
 --
--- Table: coord_system
+-- Table: "coord_system"
 --
-CREATE TABLE coord_system (
-  coord_system_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  species_id integer NOT NULL DEFAULT 1,
-  name varchar(40) NOT NULL,
-  version varchar(255),
-  rank integer NOT NULL,
-  attrib varchar
+CREATE TABLE "coord_system" (
+  "coord_system_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "species_id" integer NOT NULL DEFAULT 1,
+  "name" varchar(40) NOT NULL,
+  "version" varchar(255),
+  "rank" integer NOT NULL,
+  "attrib" varchar
 );
 
-CREATE UNIQUE INDEX name_idx ON coord_system (name, version, species_id);
+CREATE UNIQUE INDEX "name_idx" ON "coord_system" ("name", "version", "species_id");
 
-CREATE UNIQUE INDEX rank_idx ON coord_system (rank, species_id);
+CREATE UNIQUE INDEX "rank_idx" ON "coord_system" ("rank", "species_id");
 
 --
--- Table: data_file
+-- Table: "data_file"
 --
-CREATE TABLE data_file (
-  data_file_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  coord_system_id integer NOT NULL,
-  analysis_id smallint NOT NULL,
-  name varchar(100) NOT NULL,
-  version_lock tinyint NOT NULL DEFAULT 0,
-  absolute tinyint NOT NULL DEFAULT 0,
-  url text,
-  file_type enum
+CREATE TABLE "data_file" (
+  "data_file_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "coord_system_id" integer NOT NULL,
+  "analysis_id" smallint NOT NULL,
+  "name" varchar(100) NOT NULL,
+  "version_lock" tinyint NOT NULL DEFAULT 0,
+  "absolute" tinyint NOT NULL DEFAULT 0,
+  "url" text,
+  "file_type" enum
 );
 
-CREATE UNIQUE INDEX df_unq_idx ON data_file (coord_system_id, analysis_id, name, file_type);
+CREATE UNIQUE INDEX "df_unq_idx" ON "data_file" ("coord_system_id", "analysis_id", "name", "file_type");
 
 --
--- Table: density_feature
+-- Table: "density_feature"
 --
-CREATE TABLE density_feature (
-  density_feature_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  density_type_id integer NOT NULL DEFAULT 0,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  density_value float NOT NULL DEFAULT 0
+CREATE TABLE "density_feature" (
+  "density_feature_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "density_type_id" integer NOT NULL DEFAULT 0,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "density_value" float NOT NULL DEFAULT 0
 );
 
 --
--- Table: density_type
+-- Table: "density_type"
 --
-CREATE TABLE density_type (
-  density_type_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  analysis_id integer NOT NULL DEFAULT 0,
-  block_size integer NOT NULL DEFAULT 0,
-  region_features integer NOT NULL DEFAULT 0,
-  value_type enum NOT NULL DEFAULT 'sum'
+CREATE TABLE "density_type" (
+  "density_type_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "analysis_id" integer NOT NULL DEFAULT 0,
+  "block_size" integer NOT NULL DEFAULT 0,
+  "region_features" integer NOT NULL DEFAULT 0,
+  "value_type" enum NOT NULL DEFAULT 'sum'
 );
 
-CREATE UNIQUE INDEX analysis_id ON density_type (analysis_id, block_size, region_features);
+CREATE UNIQUE INDEX "analysis_id" ON "density_type" ("analysis_id", "block_size", "region_features");
 
 --
--- Table: dependent_xref
+-- Table: "dependent_xref"
 --
-CREATE TABLE dependent_xref (
-  object_xref_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  master_xref_id integer NOT NULL,
-  dependent_xref_id integer NOT NULL
+CREATE TABLE "dependent_xref" (
+  "object_xref_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "master_xref_id" integer NOT NULL,
+  "dependent_xref_id" integer NOT NULL
 );
 
 --
--- Table: ditag
+-- Table: "ditag"
 --
-CREATE TABLE ditag (
-  ditag_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  name varchar(30),
-  type varchar(30),
-  tag_count smallint DEFAULT 1,
-  sequence text
+CREATE TABLE "ditag" (
+  "ditag_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "name" varchar(30),
+  "type" varchar(30),
+  "tag_count" smallint DEFAULT 1,
+  "sequence" text
 );
 
 --
--- Table: ditag_feature
+-- Table: "ditag_feature"
 --
-CREATE TABLE ditag_feature (
-  ditag_feature_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  ditag_id integer NOT NULL DEFAULT 0,
-  ditag_pair_id integer NOT NULL DEFAULT 0,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  seq_region_strand tinyint NOT NULL DEFAULT 0,
-  analysis_id integer NOT NULL DEFAULT 0,
-  hit_start integer NOT NULL DEFAULT 0,
-  hit_end integer NOT NULL DEFAULT 0,
-  hit_strand tinyint NOT NULL DEFAULT 0,
-  cigar_line text,
-  ditag_side char(1) DEFAULT ''
+CREATE TABLE "ditag_feature" (
+  "ditag_feature_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "ditag_id" integer NOT NULL DEFAULT 0,
+  "ditag_pair_id" integer NOT NULL DEFAULT 0,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "seq_region_strand" tinyint NOT NULL DEFAULT 0,
+  "analysis_id" integer NOT NULL DEFAULT 0,
+  "hit_start" integer NOT NULL DEFAULT 0,
+  "hit_end" integer NOT NULL DEFAULT 0,
+  "hit_strand" tinyint NOT NULL DEFAULT 0,
+  "cigar_line" text,
+  "ditag_side" char(1) DEFAULT ''
 );
 
 --
--- Table: dna
+-- Table: "dna"
 --
-CREATE TABLE dna (
-  seq_region_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL DEFAULT 0,
-  sequence mediumtext NOT NULL
+CREATE TABLE "dna" (
+  "seq_region_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL DEFAULT 0,
+  "sequence" mediumtext NOT NULL
 );
 
 --
--- Table: dna_align_feature
+-- Table: "dna_align_feature"
 --
-CREATE TABLE dna_align_feature (
-  dna_align_feature_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  seq_region_strand tinyint NOT NULL DEFAULT 0,
-  hit_start integer NOT NULL DEFAULT 0,
-  hit_end integer NOT NULL DEFAULT 0,
-  hit_strand tinyint NOT NULL DEFAULT 0,
-  hit_name varchar(40) NOT NULL DEFAULT '',
-  analysis_id integer NOT NULL DEFAULT 0,
-  score double precision,
-  evalue double precision,
-  perc_ident float,
-  cigar_line text,
-  external_db_id smallint,
-  hcoverage double precision,
-  align_type enum DEFAULT 'ensembl'
+CREATE TABLE "dna_align_feature" (
+  "dna_align_feature_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "seq_region_strand" tinyint NOT NULL DEFAULT 0,
+  "hit_start" integer NOT NULL DEFAULT 0,
+  "hit_end" integer NOT NULL DEFAULT 0,
+  "hit_strand" tinyint NOT NULL DEFAULT 0,
+  "hit_name" varchar(40) NOT NULL DEFAULT '',
+  "analysis_id" integer NOT NULL DEFAULT 0,
+  "score" double precision,
+  "evalue" double precision,
+  "perc_ident" float,
+  "cigar_line" text,
+  "external_db_id" smallint,
+  "hcoverage" double precision,
+  "align_type" enum DEFAULT 'ensembl'
 );
 
 --
--- Table: dna_align_feature_attrib
+-- Table: "dna_align_feature_attrib"
 --
-CREATE TABLE dna_align_feature_attrib (
-  dna_align_feature_id integer NOT NULL,
-  attrib_type_id smallint NOT NULL,
-  value text NOT NULL
+CREATE TABLE "dna_align_feature_attrib" (
+  "dna_align_feature_id" integer NOT NULL,
+  "attrib_type_id" smallint NOT NULL,
+  "value" text NOT NULL
 );
 
-CREATE UNIQUE INDEX dna_align_feature_attribx ON dna_align_feature_attrib (dna_align_feature_id, attrib_type_id, value);
+CREATE UNIQUE INDEX "dna_align_feature_attribx" ON "dna_align_feature_attrib" ("dna_align_feature_id", "attrib_type_id", "value");
 
 --
--- Table: exon
+-- Table: "exon"
 --
-CREATE TABLE exon (
-  exon_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL,
-  seq_region_start integer NOT NULL,
-  seq_region_end integer NOT NULL,
-  seq_region_strand tinyint NOT NULL,
-  phase tinyint NOT NULL,
-  end_phase tinyint NOT NULL,
-  is_current tinyint NOT NULL DEFAULT 1,
-  is_constitutive tinyint NOT NULL DEFAULT 0,
-  stable_id varchar(128),
-  version smallint,
-  created_date datetime,
-  modified_date datetime
+CREATE TABLE "exon" (
+  "exon_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL,
+  "seq_region_start" integer NOT NULL,
+  "seq_region_end" integer NOT NULL,
+  "seq_region_strand" tinyint NOT NULL,
+  "phase" tinyint NOT NULL,
+  "end_phase" tinyint NOT NULL,
+  "is_current" tinyint NOT NULL DEFAULT 1,
+  "is_constitutive" tinyint NOT NULL DEFAULT 0,
+  "stable_id" varchar(128),
+  "version" smallint,
+  "created_date" datetime,
+  "modified_date" datetime
 );
 
 --
--- Table: exon_transcript
+-- Table: "exon_transcript"
 --
-CREATE TABLE exon_transcript (
-  exon_id integer NOT NULL DEFAULT 0,
-  transcript_id integer NOT NULL DEFAULT 0,
-  rank integer NOT NULL DEFAULT 0,
-  PRIMARY KEY (exon_id, transcript_id, rank)
+CREATE TABLE "exon_transcript" (
+  "exon_id" integer NOT NULL DEFAULT 0,
+  "transcript_id" integer NOT NULL DEFAULT 0,
+  "rank" integer NOT NULL DEFAULT 0,
+  PRIMARY KEY ("exon_id", "transcript_id", "rank")
 );
 
 --
--- Table: external_db
+-- Table: "external_db"
 --
-CREATE TABLE external_db (
-  external_db_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL DEFAULT 0,
-  db_name varchar(27) NOT NULL DEFAULT '',
-  db_release varchar(40) NOT NULL DEFAULT '',
-  status enum NOT NULL DEFAULT 'KNOWNXREF',
-  priority integer NOT NULL DEFAULT 0,
-  db_display_name varchar(255),
-  type enum,
-  secondary_db_name varchar(255),
-  secondary_db_table varchar(255),
-  description text
+CREATE TABLE "external_db" (
+  "external_db_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL DEFAULT 0,
+  "db_name" varchar(27) NOT NULL DEFAULT '',
+  "db_release" varchar(40) NOT NULL DEFAULT '',
+  "status" enum NOT NULL DEFAULT 'KNOWNXREF',
+  "priority" integer NOT NULL DEFAULT 0,
+  "db_display_name" varchar(255),
+  "type" enum,
+  "secondary_db_name" varchar(255),
+  "secondary_db_table" varchar(255),
+  "description" text
 );
 
-CREATE UNIQUE INDEX db_name_db_release_idx ON external_db (db_name, db_release);
+CREATE UNIQUE INDEX "db_name_db_release_idx" ON "external_db" ("db_name", "db_release");
 
 --
--- Table: external_synonym
+-- Table: "external_synonym"
 --
-CREATE TABLE external_synonym (
-  xref_id integer NOT NULL DEFAULT 0,
-  synonym varchar(40) NOT NULL DEFAULT '',
-  PRIMARY KEY (xref_id, synonym)
+CREATE TABLE "external_synonym" (
+  "xref_id" integer NOT NULL DEFAULT 0,
+  "synonym" varchar(40) NOT NULL DEFAULT '',
+  PRIMARY KEY ("xref_id", "synonym")
 );
 
 --
--- Table: gene
+-- Table: "gene"
 --
-CREATE TABLE gene (
-  gene_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  biotype varchar(40) NOT NULL,
-  analysis_id smallint NOT NULL,
-  seq_region_id integer NOT NULL,
-  seq_region_start integer NOT NULL,
-  seq_region_end integer NOT NULL,
-  seq_region_strand tinyint NOT NULL,
-  display_xref_id integer,
-  source varchar(40) NOT NULL,
-  description text,
-  is_current tinyint NOT NULL DEFAULT 1,
-  canonical_transcript_id integer NOT NULL,
-  stable_id varchar(128),
-  version smallint,
-  created_date datetime,
-  modified_date datetime
+CREATE TABLE "gene" (
+  "gene_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "biotype" varchar(40) NOT NULL,
+  "analysis_id" smallint NOT NULL,
+  "seq_region_id" integer NOT NULL,
+  "seq_region_start" integer NOT NULL,
+  "seq_region_end" integer NOT NULL,
+  "seq_region_strand" tinyint NOT NULL,
+  "display_xref_id" integer,
+  "source" varchar(40) NOT NULL,
+  "description" text,
+  "is_current" tinyint NOT NULL DEFAULT 1,
+  "canonical_transcript_id" integer NOT NULL,
+  "stable_id" varchar(128),
+  "version" smallint,
+  "created_date" datetime,
+  "modified_date" datetime
 );
 
 --
--- Table: gene_archive
+-- Table: "gene_archive"
 --
-CREATE TABLE gene_archive (
-  gene_stable_id varchar(128) NOT NULL DEFAULT '',
-  gene_version smallint NOT NULL DEFAULT 0,
-  transcript_stable_id varchar(128) NOT NULL DEFAULT '',
-  transcript_version smallint NOT NULL DEFAULT 0,
-  translation_stable_id varchar(128) NOT NULL DEFAULT '',
-  translation_version smallint NOT NULL DEFAULT 0,
-  peptide_archive_id integer NOT NULL DEFAULT 0,
-  mapping_session_id integer NOT NULL DEFAULT 0
+CREATE TABLE "gene_archive" (
+  "gene_stable_id" varchar(128) NOT NULL DEFAULT '',
+  "gene_version" smallint NOT NULL DEFAULT 0,
+  "transcript_stable_id" varchar(128) NOT NULL DEFAULT '',
+  "transcript_version" smallint NOT NULL DEFAULT 0,
+  "translation_stable_id" varchar(128) NOT NULL DEFAULT '',
+  "translation_version" smallint NOT NULL DEFAULT 0,
+  "peptide_archive_id" integer NOT NULL DEFAULT 0,
+  "mapping_session_id" integer NOT NULL DEFAULT 0
 );
 
 --
--- Table: gene_attrib
+-- Table: "gene_attrib"
 --
-CREATE TABLE gene_attrib (
-  gene_id integer NOT NULL DEFAULT 0,
-  attrib_type_id smallint NOT NULL DEFAULT 0,
-  value text NOT NULL
+CREATE TABLE "gene_attrib" (
+  "gene_id" integer NOT NULL DEFAULT 0,
+  "attrib_type_id" smallint NOT NULL DEFAULT 0,
+  "value" text NOT NULL
 );
 
-CREATE UNIQUE INDEX gene_attribx ON gene_attrib (gene_id, attrib_type_id, value);
+CREATE UNIQUE INDEX "gene_attribx" ON "gene_attrib" ("gene_id", "attrib_type_id", "value");
 
 --
--- Table: genome_statistics
+-- Table: "genome_statistics"
 --
-CREATE TABLE genome_statistics (
-  genome_statistics_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  statistic varchar(128) NOT NULL,
-  value bigint NOT NULL DEFAULT 0,
-  species_id integer DEFAULT 1,
-  attrib_type_id integer,
-  timestamp datetime
+CREATE TABLE "genome_statistics" (
+  "genome_statistics_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "statistic" varchar(128) NOT NULL,
+  "value" bigint NOT NULL DEFAULT 0,
+  "species_id" integer DEFAULT 1,
+  "attrib_type_id" integer,
+  "timestamp" datetime
 );
 
-CREATE UNIQUE INDEX stats_uniq ON genome_statistics (statistic, attrib_type_id, species_id);
+CREATE UNIQUE INDEX "stats_uniq" ON "genome_statistics" ("statistic", "attrib_type_id", "species_id");
 
 --
--- Table: identity_xref
+-- Table: "identity_xref"
 --
-CREATE TABLE identity_xref (
-  object_xref_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL DEFAULT 0,
-  xref_identity integer,
-  ensembl_identity integer,
-  xref_start integer,
-  xref_end integer,
-  ensembl_start integer,
-  ensembl_end integer,
-  cigar_line text,
-  score double precision,
-  evalue double precision
+CREATE TABLE "identity_xref" (
+  "object_xref_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL DEFAULT 0,
+  "xref_identity" integer,
+  "ensembl_identity" integer,
+  "xref_start" integer,
+  "xref_end" integer,
+  "ensembl_start" integer,
+  "ensembl_end" integer,
+  "cigar_line" text,
+  "score" double precision,
+  "evalue" double precision
 );
 
 --
--- Table: interpro
+-- Table: "interpro"
 --
-CREATE TABLE interpro (
-  interpro_ac varchar(40) NOT NULL DEFAULT '',
-  id varchar(40) NOT NULL
+CREATE TABLE "interpro" (
+  "interpro_ac" varchar(40) NOT NULL DEFAULT '',
+  "id" varchar(40) NOT NULL
 );
 
-CREATE UNIQUE INDEX accession_idx ON interpro (interpro_ac, id);
+CREATE UNIQUE INDEX "accession_idx" ON "interpro" ("interpro_ac", "id");
 
 --
--- Table: intron_supporting_evidence
+-- Table: "intron_supporting_evidence"
 --
-CREATE TABLE intron_supporting_evidence (
-  intron_supporting_evidence_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  analysis_id smallint NOT NULL,
-  seq_region_id integer NOT NULL,
-  seq_region_start integer NOT NULL,
-  seq_region_end integer NOT NULL,
-  seq_region_strand tinyint NOT NULL,
-  hit_name varchar(100) NOT NULL,
-  score decimal(10,3),
-  score_type enum DEFAULT 'NONE',
-  is_splice_canonical tinyint NOT NULL DEFAULT 0
+CREATE TABLE "intron_supporting_evidence" (
+  "intron_supporting_evidence_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "analysis_id" smallint NOT NULL,
+  "seq_region_id" integer NOT NULL,
+  "seq_region_start" integer NOT NULL,
+  "seq_region_end" integer NOT NULL,
+  "seq_region_strand" tinyint NOT NULL,
+  "hit_name" varchar(100) NOT NULL,
+  "score" decimal(10,3),
+  "score_type" enum DEFAULT 'NONE',
+  "is_splice_canonical" tinyint NOT NULL DEFAULT 0
 );
 
-CREATE UNIQUE INDEX analysis_id02 ON intron_supporting_evidence (analysis_id, seq_region_id, seq_region_start, seq_region_end, seq_region_strand, hit_name);
+CREATE UNIQUE INDEX "analysis_id02" ON "intron_supporting_evidence" ("analysis_id", "seq_region_id", "seq_region_start", "seq_region_end", "seq_region_strand", "hit_name");
 
 --
--- Table: karyotype
+-- Table: "karyotype"
 --
-CREATE TABLE karyotype (
-  karyotype_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  band varchar(40),
-  stain varchar(40)
+CREATE TABLE "karyotype" (
+  "karyotype_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "band" varchar(40),
+  "stain" varchar(40)
 );
 
 --
--- Table: map
+-- Table: "map"
 --
-CREATE TABLE map (
-  map_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  map_name varchar(30) NOT NULL DEFAULT ''
+CREATE TABLE "map" (
+  "map_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "map_name" varchar(30) NOT NULL DEFAULT ''
 );
 
 --
--- Table: mapping_session
+-- Table: "mapping_session"
 --
-CREATE TABLE mapping_session (
-  mapping_session_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  old_db_name varchar(80) NOT NULL DEFAULT '',
-  new_db_name varchar(80) NOT NULL DEFAULT '',
-  old_release varchar(5) NOT NULL DEFAULT '',
-  new_release varchar(5) NOT NULL DEFAULT '',
-  old_assembly varchar(20) NOT NULL DEFAULT '',
-  new_assembly varchar(20) NOT NULL DEFAULT '',
-  created datetime
+CREATE TABLE "mapping_session" (
+  "mapping_session_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "old_db_name" varchar(80) NOT NULL DEFAULT '',
+  "new_db_name" varchar(80) NOT NULL DEFAULT '',
+  "old_release" varchar(5) NOT NULL DEFAULT '',
+  "new_release" varchar(5) NOT NULL DEFAULT '',
+  "old_assembly" varchar(20) NOT NULL DEFAULT '',
+  "new_assembly" varchar(20) NOT NULL DEFAULT '',
+  "created" datetime
 );
 
 --
--- Table: mapping_set
+-- Table: "mapping_set"
 --
-CREATE TABLE mapping_set (
-  mapping_set_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  internal_schema_build varchar(20) NOT NULL,
-  external_schema_build varchar(20) NOT NULL
+CREATE TABLE "mapping_set" (
+  "mapping_set_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "internal_schema_build" varchar(20) NOT NULL,
+  "external_schema_build" varchar(20) NOT NULL
 );
 
-CREATE UNIQUE INDEX mapping_idx ON mapping_set (internal_schema_build, external_schema_build);
+CREATE UNIQUE INDEX "mapping_idx" ON "mapping_set" ("internal_schema_build", "external_schema_build");
 
 --
--- Table: marker
+-- Table: "marker"
 --
-CREATE TABLE marker (
-  marker_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  display_marker_synonym_id integer,
-  left_primer varchar(100) NOT NULL DEFAULT '',
-  right_primer varchar(100) NOT NULL DEFAULT '',
-  min_primer_dist integer NOT NULL DEFAULT 0,
-  max_primer_dist integer NOT NULL DEFAULT 0,
-  priority integer,
-  type enum
+CREATE TABLE "marker" (
+  "marker_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "display_marker_synonym_id" integer,
+  "left_primer" varchar(100) NOT NULL DEFAULT '',
+  "right_primer" varchar(100) NOT NULL DEFAULT '',
+  "min_primer_dist" integer NOT NULL DEFAULT 0,
+  "max_primer_dist" integer NOT NULL DEFAULT 0,
+  "priority" integer,
+  "type" enum
 );
 
 --
--- Table: marker_feature
+-- Table: "marker_feature"
 --
-CREATE TABLE marker_feature (
-  marker_feature_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  marker_id integer NOT NULL DEFAULT 0,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  analysis_id integer NOT NULL DEFAULT 0,
-  map_weight integer
+CREATE TABLE "marker_feature" (
+  "marker_feature_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "marker_id" integer NOT NULL DEFAULT 0,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "analysis_id" integer NOT NULL DEFAULT 0,
+  "map_weight" integer
 );
 
 --
--- Table: marker_map_location
+-- Table: "marker_map_location"
 --
-CREATE TABLE marker_map_location (
-  marker_id integer NOT NULL DEFAULT 0,
-  map_id integer NOT NULL DEFAULT 0,
-  chromosome_name varchar(15) NOT NULL DEFAULT '',
-  marker_synonym_id integer NOT NULL DEFAULT 0,
-  position varchar(15) NOT NULL DEFAULT '',
-  lod_score double precision,
-  PRIMARY KEY (marker_id, map_id)
+CREATE TABLE "marker_map_location" (
+  "marker_id" integer NOT NULL DEFAULT 0,
+  "map_id" integer NOT NULL DEFAULT 0,
+  "chromosome_name" varchar(15) NOT NULL DEFAULT '',
+  "marker_synonym_id" integer NOT NULL DEFAULT 0,
+  "position" varchar(15) NOT NULL DEFAULT '',
+  "lod_score" double precision,
+  PRIMARY KEY ("marker_id", "map_id")
 );
 
 --
--- Table: marker_synonym
+-- Table: "marker_synonym"
 --
-CREATE TABLE marker_synonym (
-  marker_synonym_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  marker_id integer NOT NULL DEFAULT 0,
-  source varchar(20),
-  name varchar(30)
+CREATE TABLE "marker_synonym" (
+  "marker_synonym_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "marker_id" integer NOT NULL DEFAULT 0,
+  "source" varchar(20),
+  "name" varchar(30)
 );
 
 --
--- Table: meta
+-- Table: "meta"
 --
-CREATE TABLE meta (
-  meta_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  species_id integer DEFAULT 1,
-  meta_key varchar(40) NOT NULL,
-  meta_value varchar(255) NOT NULL
+CREATE TABLE "meta" (
+  "meta_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "species_id" integer DEFAULT 1,
+  "meta_key" varchar(40) NOT NULL,
+  "meta_value" varchar(255) NOT NULL
 );
 
-CREATE UNIQUE INDEX species_key_value_idx ON meta (species_id, meta_key, meta_value);
+CREATE UNIQUE INDEX "species_key_value_idx" ON "meta" ("species_id", "meta_key", "meta_value");
 
 --
--- Table: meta_coord
+-- Table: "meta_coord"
 --
-CREATE TABLE meta_coord (
-  table_name varchar(40) NOT NULL DEFAULT '',
-  coord_system_id integer NOT NULL DEFAULT 0,
-  max_length integer
+CREATE TABLE "meta_coord" (
+  "table_name" varchar(40) NOT NULL DEFAULT '',
+  "coord_system_id" integer NOT NULL DEFAULT 0,
+  "max_length" integer
 );
 
-CREATE UNIQUE INDEX cs_table_name_idx ON meta_coord (coord_system_id, table_name);
+CREATE UNIQUE INDEX "cs_table_name_idx" ON "meta_coord" ("coord_system_id", "table_name");
 
 --
--- Table: misc_attrib
+-- Table: "misc_attrib"
 --
-CREATE TABLE misc_attrib (
-  misc_feature_id integer NOT NULL DEFAULT 0,
-  attrib_type_id smallint NOT NULL DEFAULT 0,
-  value text NOT NULL
+CREATE TABLE "misc_attrib" (
+  "misc_feature_id" integer NOT NULL DEFAULT 0,
+  "attrib_type_id" smallint NOT NULL DEFAULT 0,
+  "value" text NOT NULL
 );
 
-CREATE UNIQUE INDEX misc_attribx ON misc_attrib (misc_feature_id, attrib_type_id, value);
+CREATE UNIQUE INDEX "misc_attribx" ON "misc_attrib" ("misc_feature_id", "attrib_type_id", "value");
 
 --
--- Table: misc_feature
+-- Table: "misc_feature"
 --
-CREATE TABLE misc_feature (
-  misc_feature_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  seq_region_strand tinyint NOT NULL DEFAULT 0
+CREATE TABLE "misc_feature" (
+  "misc_feature_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "seq_region_strand" tinyint NOT NULL DEFAULT 0
 );
 
 --
--- Table: misc_feature_misc_set
+-- Table: "misc_feature_misc_set"
 --
-CREATE TABLE misc_feature_misc_set (
-  misc_feature_id integer NOT NULL DEFAULT 0,
-  misc_set_id smallint NOT NULL DEFAULT 0,
-  PRIMARY KEY (misc_feature_id, misc_set_id)
+CREATE TABLE "misc_feature_misc_set" (
+  "misc_feature_id" integer NOT NULL DEFAULT 0,
+  "misc_set_id" smallint NOT NULL DEFAULT 0,
+  PRIMARY KEY ("misc_feature_id", "misc_set_id")
 );
 
 --
--- Table: misc_set
+-- Table: "misc_set"
 --
-CREATE TABLE misc_set (
-  misc_set_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  code varchar(25) NOT NULL DEFAULT '',
-  name varchar(255) NOT NULL DEFAULT '',
-  description text NOT NULL,
-  max_length integer NOT NULL DEFAULT 0
+CREATE TABLE "misc_set" (
+  "misc_set_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "code" varchar(25) NOT NULL DEFAULT '',
+  "name" varchar(255) NOT NULL DEFAULT '',
+  "description" text NOT NULL,
+  "max_length" integer NOT NULL DEFAULT 0
 );
 
-CREATE UNIQUE INDEX code_idx02 ON misc_set (code);
+CREATE UNIQUE INDEX "code_idx02" ON "misc_set" ("code");
 
 --
--- Table: object_xref
+-- Table: "object_xref"
 --
-CREATE TABLE object_xref (
-  object_xref_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  ensembl_id integer NOT NULL DEFAULT 0,
-  ensembl_object_type enum NOT NULL DEFAULT 'RawContig',
-  xref_id integer NOT NULL,
-  linkage_annotation varchar(255),
-  analysis_id smallint
+CREATE TABLE "object_xref" (
+  "object_xref_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "ensembl_id" integer NOT NULL DEFAULT 0,
+  "ensembl_object_type" enum NOT NULL DEFAULT 'RawContig',
+  "xref_id" integer NOT NULL,
+  "linkage_annotation" varchar(255),
+  "analysis_id" smallint
 );
 
-CREATE UNIQUE INDEX xref_idx ON object_xref (xref_id, ensembl_object_type, ensembl_id, analysis_id);
+CREATE UNIQUE INDEX "xref_idx" ON "object_xref" ("xref_id", "ensembl_object_type", "ensembl_id", "analysis_id");
 
 --
--- Table: ontology_xref
+-- Table: "ontology_xref"
 --
-CREATE TABLE ontology_xref (
-  object_xref_id integer NOT NULL DEFAULT 0,
-  linkage_type varchar(3),
-  source_xref_id integer
+CREATE TABLE "ontology_xref" (
+  "object_xref_id" integer NOT NULL DEFAULT 0,
+  "linkage_type" varchar(3),
+  "source_xref_id" integer
 );
 
-CREATE UNIQUE INDEX object_source_type_idx ON ontology_xref (object_xref_id, source_xref_id, linkage_type);
+CREATE UNIQUE INDEX "object_source_type_idx" ON "ontology_xref" ("object_xref_id", "source_xref_id", "linkage_type");
 
 --
--- Table: operon
+-- Table: "operon"
 --
-CREATE TABLE operon (
-  operon_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL,
-  seq_region_start integer NOT NULL,
-  seq_region_end integer NOT NULL,
-  seq_region_strand tinyint NOT NULL,
-  display_label varchar(255),
-  analysis_id smallint NOT NULL,
-  stable_id varchar(128),
-  version smallint,
-  created_date datetime,
-  modified_date datetime
+CREATE TABLE "operon" (
+  "operon_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL,
+  "seq_region_start" integer NOT NULL,
+  "seq_region_end" integer NOT NULL,
+  "seq_region_strand" tinyint NOT NULL,
+  "display_label" varchar(255),
+  "analysis_id" smallint NOT NULL,
+  "stable_id" varchar(128),
+  "version" smallint,
+  "created_date" datetime,
+  "modified_date" datetime
 );
 
 --
--- Table: operon_transcript
+-- Table: "operon_transcript"
 --
-CREATE TABLE operon_transcript (
-  operon_transcript_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL,
-  seq_region_start integer NOT NULL,
-  seq_region_end integer NOT NULL,
-  seq_region_strand tinyint NOT NULL,
-  operon_id integer NOT NULL,
-  display_label varchar(255),
-  analysis_id smallint NOT NULL,
-  stable_id varchar(128),
-  version smallint,
-  created_date datetime,
-  modified_date datetime
+CREATE TABLE "operon_transcript" (
+  "operon_transcript_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL,
+  "seq_region_start" integer NOT NULL,
+  "seq_region_end" integer NOT NULL,
+  "seq_region_strand" tinyint NOT NULL,
+  "operon_id" integer NOT NULL,
+  "display_label" varchar(255),
+  "analysis_id" smallint NOT NULL,
+  "stable_id" varchar(128),
+  "version" smallint,
+  "created_date" datetime,
+  "modified_date" datetime
 );
 
 --
--- Table: operon_transcript_gene
+-- Table: "operon_transcript_gene"
 --
-CREATE TABLE operon_transcript_gene (
-  operon_transcript_id integer,
-  gene_id integer
+CREATE TABLE "operon_transcript_gene" (
+  "operon_transcript_id" integer,
+  "gene_id" integer
 );
 
 --
--- Table: peptide_archive
+-- Table: "peptide_archive"
 --
-CREATE TABLE peptide_archive (
-  peptide_archive_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  md5_checksum varchar(32),
-  peptide_seq mediumtext NOT NULL
+CREATE TABLE "peptide_archive" (
+  "peptide_archive_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "md5_checksum" varchar(32),
+  "peptide_seq" mediumtext NOT NULL
 );
 
 --
--- Table: prediction_exon
+-- Table: "prediction_exon"
 --
-CREATE TABLE prediction_exon (
-  prediction_exon_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  prediction_transcript_id integer NOT NULL DEFAULT 0,
-  exon_rank smallint NOT NULL DEFAULT 0,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  seq_region_strand tinyint NOT NULL DEFAULT 0,
-  start_phase tinyint NOT NULL DEFAULT 0,
-  score double precision,
-  p_value double precision
+CREATE TABLE "prediction_exon" (
+  "prediction_exon_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "prediction_transcript_id" integer NOT NULL DEFAULT 0,
+  "exon_rank" smallint NOT NULL DEFAULT 0,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "seq_region_strand" tinyint NOT NULL DEFAULT 0,
+  "start_phase" tinyint NOT NULL DEFAULT 0,
+  "score" double precision,
+  "p_value" double precision
 );
 
 --
--- Table: prediction_transcript
+-- Table: "prediction_transcript"
 --
-CREATE TABLE prediction_transcript (
-  prediction_transcript_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  seq_region_strand tinyint NOT NULL DEFAULT 0,
-  analysis_id integer,
-  display_label varchar(255)
+CREATE TABLE "prediction_transcript" (
+  "prediction_transcript_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "seq_region_strand" tinyint NOT NULL DEFAULT 0,
+  "analysis_id" integer,
+  "display_label" varchar(255)
 );
 
 --
--- Table: protein_align_feature
+-- Table: "protein_align_feature"
 --
-CREATE TABLE protein_align_feature (
-  protein_align_feature_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  seq_region_strand tinyint NOT NULL DEFAULT 1,
-  hit_start integer NOT NULL DEFAULT 0,
-  hit_end integer NOT NULL DEFAULT 0,
-  hit_name varchar(40) NOT NULL DEFAULT '',
-  analysis_id integer NOT NULL DEFAULT 0,
-  score double precision,
-  evalue double precision,
-  perc_ident float,
-  cigar_line text,
-  external_db_id smallint,
-  hcoverage double precision,
-  align_type enum DEFAULT 'ensembl'
+CREATE TABLE "protein_align_feature" (
+  "protein_align_feature_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "seq_region_strand" tinyint NOT NULL DEFAULT 1,
+  "hit_start" integer NOT NULL DEFAULT 0,
+  "hit_end" integer NOT NULL DEFAULT 0,
+  "hit_name" varchar(40) NOT NULL DEFAULT '',
+  "analysis_id" integer NOT NULL DEFAULT 0,
+  "score" double precision,
+  "evalue" double precision,
+  "perc_ident" float,
+  "cigar_line" text,
+  "external_db_id" smallint,
+  "hcoverage" double precision,
+  "align_type" enum DEFAULT 'ensembl'
 );
 
 --
--- Table: protein_feature
+-- Table: "protein_feature"
 --
-CREATE TABLE protein_feature (
-  protein_feature_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  translation_id integer NOT NULL DEFAULT 0,
-  seq_start integer NOT NULL DEFAULT 0,
-  seq_end integer NOT NULL DEFAULT 0,
-  hit_start integer NOT NULL DEFAULT 0,
-  hit_end integer NOT NULL DEFAULT 0,
-  hit_name varchar(40) NOT NULL,
-  analysis_id integer NOT NULL DEFAULT 0,
-  score double precision NOT NULL DEFAULT 0,
-  evalue double precision,
-  perc_ident float,
-  external_data text,
-  hit_description text,
-  cigar_line text,
-  align_type enum
+CREATE TABLE "protein_feature" (
+  "protein_feature_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "translation_id" integer NOT NULL DEFAULT 0,
+  "seq_start" integer NOT NULL DEFAULT 0,
+  "seq_end" integer NOT NULL DEFAULT 0,
+  "hit_start" integer NOT NULL DEFAULT 0,
+  "hit_end" integer NOT NULL DEFAULT 0,
+  "hit_name" varchar(40) NOT NULL,
+  "analysis_id" integer NOT NULL DEFAULT 0,
+  "score" double precision NOT NULL DEFAULT 0,
+  "evalue" double precision,
+  "perc_ident" float,
+  "external_data" text,
+  "hit_description" text,
+  "cigar_line" text,
+  "align_type" enum
 );
 
-CREATE UNIQUE INDEX aln_idx ON protein_feature (translation_id, hit_name, seq_start, seq_end, hit_start, hit_end, analysis_id);
+CREATE UNIQUE INDEX "aln_idx" ON "protein_feature" ("translation_id", "hit_name", "seq_start", "seq_end", "hit_start", "hit_end", "analysis_id");
 
 --
--- Table: repeat_consensus
+-- Table: "repeat_consensus"
 --
-CREATE TABLE repeat_consensus (
-  repeat_consensus_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  repeat_name varchar(255) NOT NULL DEFAULT '',
-  repeat_class varchar(100) NOT NULL DEFAULT '',
-  repeat_type varchar(40) NOT NULL DEFAULT '',
-  repeat_consensus text
+CREATE TABLE "repeat_consensus" (
+  "repeat_consensus_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "repeat_name" varchar(255) NOT NULL DEFAULT '',
+  "repeat_class" varchar(100) NOT NULL DEFAULT '',
+  "repeat_type" varchar(40) NOT NULL DEFAULT '',
+  "repeat_consensus" text
 );
 
 --
--- Table: repeat_feature
+-- Table: "repeat_feature"
 --
-CREATE TABLE repeat_feature (
-  repeat_feature_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  seq_region_strand tinyint NOT NULL DEFAULT 1,
-  repeat_start integer NOT NULL DEFAULT 0,
-  repeat_end integer NOT NULL DEFAULT 0,
-  repeat_consensus_id integer NOT NULL DEFAULT 0,
-  analysis_id integer NOT NULL DEFAULT 0,
-  score double precision
+CREATE TABLE "repeat_feature" (
+  "repeat_feature_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "seq_region_strand" tinyint NOT NULL DEFAULT 1,
+  "repeat_start" integer NOT NULL DEFAULT 0,
+  "repeat_end" integer NOT NULL DEFAULT 0,
+  "repeat_consensus_id" integer NOT NULL DEFAULT 0,
+  "analysis_id" integer NOT NULL DEFAULT 0,
+  "score" double precision
 );
 
 --
--- Table: seq_region
+-- Table: "seq_region"
 --
-CREATE TABLE seq_region (
-  seq_region_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  name varchar(255) NOT NULL,
-  coord_system_id integer NOT NULL DEFAULT 0,
-  length integer NOT NULL DEFAULT 0
+CREATE TABLE "seq_region" (
+  "seq_region_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "name" varchar(255) NOT NULL,
+  "coord_system_id" integer NOT NULL DEFAULT 0,
+  "length" integer NOT NULL DEFAULT 0
 );
 
-CREATE UNIQUE INDEX name_cs_idx ON seq_region (name, coord_system_id);
+CREATE UNIQUE INDEX "name_cs_idx" ON "seq_region" ("name", "coord_system_id");
 
 --
--- Table: seq_region_attrib
+-- Table: "seq_region_attrib"
 --
-CREATE TABLE seq_region_attrib (
-  seq_region_id integer NOT NULL DEFAULT 0,
-  attrib_type_id smallint NOT NULL DEFAULT 0,
-  value text NOT NULL
+CREATE TABLE "seq_region_attrib" (
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "attrib_type_id" smallint NOT NULL DEFAULT 0,
+  "value" text NOT NULL
 );
 
-CREATE UNIQUE INDEX region_attribx ON seq_region_attrib (seq_region_id, attrib_type_id, value);
+CREATE UNIQUE INDEX "region_attribx" ON "seq_region_attrib" ("seq_region_id", "attrib_type_id", "value");
 
 --
--- Table: seq_region_mapping
+-- Table: "seq_region_mapping"
 --
-CREATE TABLE seq_region_mapping (
-  external_seq_region_id integer NOT NULL,
-  internal_seq_region_id integer NOT NULL,
-  mapping_set_id integer NOT NULL
+CREATE TABLE "seq_region_mapping" (
+  "external_seq_region_id" integer NOT NULL,
+  "internal_seq_region_id" integer NOT NULL,
+  "mapping_set_id" integer NOT NULL
 );
 
 --
--- Table: seq_region_synonym
+-- Table: "seq_region_synonym"
 --
-CREATE TABLE seq_region_synonym (
-  seq_region_synonym_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL,
-  synonym varchar(250) NOT NULL,
-  external_db_id smallint
+CREATE TABLE "seq_region_synonym" (
+  "seq_region_synonym_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL,
+  "synonym" varchar(250) NOT NULL,
+  "external_db_id" smallint
 );
 
-CREATE UNIQUE INDEX syn_idx ON seq_region_synonym (synonym, seq_region_id);
+CREATE UNIQUE INDEX "syn_idx" ON "seq_region_synonym" ("synonym", "seq_region_id");
 
 --
--- Table: simple_feature
+-- Table: "simple_feature"
 --
-CREATE TABLE simple_feature (
-  simple_feature_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  seq_region_strand tinyint NOT NULL DEFAULT 0,
-  display_label varchar(40) NOT NULL DEFAULT '',
-  analysis_id integer NOT NULL DEFAULT 0,
-  score double precision
+CREATE TABLE "simple_feature" (
+  "simple_feature_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "seq_region_strand" tinyint NOT NULL DEFAULT 0,
+  "display_label" varchar(40) NOT NULL DEFAULT '',
+  "analysis_id" integer NOT NULL DEFAULT 0,
+  "score" double precision
 );
 
 --
--- Table: stable_id_event
+-- Table: "stable_id_event"
 --
-CREATE TABLE stable_id_event (
-  old_stable_id varchar(128),
-  old_version smallint,
-  new_stable_id varchar(128),
-  new_version smallint,
-  mapping_session_id integer NOT NULL DEFAULT 0,
-  type enum NOT NULL DEFAULT 'gene',
-  score float NOT NULL DEFAULT 0
+CREATE TABLE "stable_id_event" (
+  "old_stable_id" varchar(128),
+  "old_version" smallint,
+  "new_stable_id" varchar(128),
+  "new_version" smallint,
+  "mapping_session_id" integer NOT NULL DEFAULT 0,
+  "type" enum NOT NULL DEFAULT 'gene',
+  "score" float NOT NULL DEFAULT 0
 );
 
-CREATE UNIQUE INDEX uni_idx ON stable_id_event (mapping_session_id, old_stable_id, old_version, new_stable_id, new_version, type);
+CREATE UNIQUE INDEX "uni_idx" ON "stable_id_event" ("mapping_session_id", "old_stable_id", "old_version", "new_stable_id", "new_version", "type");
 
 --
--- Table: supporting_feature
+-- Table: "supporting_feature"
 --
-CREATE TABLE supporting_feature (
-  exon_id integer NOT NULL DEFAULT 0,
-  feature_type enum,
-  feature_id integer NOT NULL DEFAULT 0
+CREATE TABLE "supporting_feature" (
+  "exon_id" integer NOT NULL DEFAULT 0,
+  "feature_type" enum,
+  "feature_id" integer NOT NULL DEFAULT 0
 );
 
-CREATE UNIQUE INDEX all_idx02 ON supporting_feature (exon_id, feature_type, feature_id);
+CREATE UNIQUE INDEX "all_idx02" ON "supporting_feature" ("exon_id", "feature_type", "feature_id");
 
 --
--- Table: transcript
+-- Table: "transcript"
 --
-CREATE TABLE transcript (
-  transcript_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  gene_id integer,
-  analysis_id smallint NOT NULL,
-  seq_region_id integer NOT NULL,
-  seq_region_start integer NOT NULL,
-  seq_region_end integer NOT NULL,
-  seq_region_strand tinyint NOT NULL,
-  display_xref_id integer,
-  source varchar(40) NOT NULL DEFAULT 'ensembl',
-  biotype varchar(40) NOT NULL,
-  description text,
-  is_current tinyint NOT NULL DEFAULT 1,
-  canonical_translation_id integer,
-  stable_id varchar(128),
-  version smallint,
-  created_date datetime,
-  modified_date datetime
+CREATE TABLE "transcript" (
+  "transcript_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "gene_id" integer,
+  "analysis_id" smallint NOT NULL,
+  "seq_region_id" integer NOT NULL,
+  "seq_region_start" integer NOT NULL,
+  "seq_region_end" integer NOT NULL,
+  "seq_region_strand" tinyint NOT NULL,
+  "display_xref_id" integer,
+  "source" varchar(40) NOT NULL DEFAULT 'ensembl',
+  "biotype" varchar(40) NOT NULL,
+  "description" text,
+  "is_current" tinyint NOT NULL DEFAULT 1,
+  "canonical_translation_id" integer,
+  "stable_id" varchar(128),
+  "version" smallint,
+  "created_date" datetime,
+  "modified_date" datetime
 );
 
-CREATE UNIQUE INDEX canonical_translation_idx ON transcript (canonical_translation_id);
+CREATE UNIQUE INDEX "canonical_translation_idx" ON "transcript" ("canonical_translation_id");
 
 --
--- Table: transcript_attrib
+-- Table: "transcript_attrib"
 --
-CREATE TABLE transcript_attrib (
-  transcript_id integer NOT NULL DEFAULT 0,
-  attrib_type_id smallint NOT NULL DEFAULT 0,
-  value text NOT NULL
+CREATE TABLE "transcript_attrib" (
+  "transcript_id" integer NOT NULL DEFAULT 0,
+  "attrib_type_id" smallint NOT NULL DEFAULT 0,
+  "value" text NOT NULL
 );
 
-CREATE UNIQUE INDEX transcript_attribx ON transcript_attrib (transcript_id, attrib_type_id, value);
+CREATE UNIQUE INDEX "transcript_attribx" ON "transcript_attrib" ("transcript_id", "attrib_type_id", "value");
 
 --
--- Table: transcript_intron_supporting_evidence
+-- Table: "transcript_intron_supporting_evidence"
 --
-CREATE TABLE transcript_intron_supporting_evidence (
-  transcript_id integer NOT NULL,
-  intron_supporting_evidence_id integer NOT NULL,
-  previous_exon_id integer NOT NULL,
-  next_exon_id integer NOT NULL,
-  PRIMARY KEY (intron_supporting_evidence_id, transcript_id)
+CREATE TABLE "transcript_intron_supporting_evidence" (
+  "transcript_id" integer NOT NULL,
+  "intron_supporting_evidence_id" integer NOT NULL,
+  "previous_exon_id" integer NOT NULL,
+  "next_exon_id" integer NOT NULL,
+  PRIMARY KEY ("intron_supporting_evidence_id", "transcript_id")
 );
 
 --
--- Table: transcript_supporting_feature
+-- Table: "transcript_supporting_feature"
 --
-CREATE TABLE transcript_supporting_feature (
-  transcript_id integer NOT NULL DEFAULT 0,
-  feature_type enum,
-  feature_id integer NOT NULL DEFAULT 0
+CREATE TABLE "transcript_supporting_feature" (
+  "transcript_id" integer NOT NULL DEFAULT 0,
+  "feature_type" enum,
+  "feature_id" integer NOT NULL DEFAULT 0
 );
 
-CREATE UNIQUE INDEX all_idx03 ON transcript_supporting_feature (transcript_id, feature_type, feature_id);
+CREATE UNIQUE INDEX "all_idx03" ON "transcript_supporting_feature" ("transcript_id", "feature_type", "feature_id");
 
 --
--- Table: translation
+-- Table: "translation"
 --
-CREATE TABLE translation (
-  translation_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  transcript_id integer NOT NULL,
-  seq_start integer NOT NULL,
-  start_exon_id integer NOT NULL,
-  seq_end integer NOT NULL,
-  end_exon_id integer NOT NULL,
-  stable_id varchar(128),
-  version smallint,
-  created_date datetime,
-  modified_date datetime
+CREATE TABLE "translation" (
+  "translation_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "transcript_id" integer NOT NULL,
+  "seq_start" integer NOT NULL,
+  "start_exon_id" integer NOT NULL,
+  "seq_end" integer NOT NULL,
+  "end_exon_id" integer NOT NULL,
+  "stable_id" varchar(128),
+  "version" smallint,
+  "created_date" datetime,
+  "modified_date" datetime
 );
 
 --
--- Table: translation_attrib
+-- Table: "translation_attrib"
 --
-CREATE TABLE translation_attrib (
-  translation_id integer NOT NULL DEFAULT 0,
-  attrib_type_id smallint NOT NULL DEFAULT 0,
-  value text NOT NULL
+CREATE TABLE "translation_attrib" (
+  "translation_id" integer NOT NULL DEFAULT 0,
+  "attrib_type_id" smallint NOT NULL DEFAULT 0,
+  "value" text NOT NULL
 );
 
-CREATE UNIQUE INDEX translation_attribx ON translation_attrib (translation_id, attrib_type_id, value);
+CREATE UNIQUE INDEX "translation_attribx" ON "translation_attrib" ("translation_id", "attrib_type_id", "value");
 
 --
--- Table: unmapped_object
+-- Table: "unmapped_object"
 --
-CREATE TABLE unmapped_object (
-  unmapped_object_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  type enum NOT NULL,
-  analysis_id integer NOT NULL,
-  external_db_id integer,
-  identifier varchar(255) NOT NULL,
-  unmapped_reason_id integer NOT NULL,
-  query_score double precision,
-  target_score double precision,
-  ensembl_id integer DEFAULT 0,
-  ensembl_object_type enum DEFAULT 'RawContig',
-  parent varchar(255)
+CREATE TABLE "unmapped_object" (
+  "unmapped_object_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "type" enum NOT NULL,
+  "analysis_id" integer NOT NULL,
+  "external_db_id" integer,
+  "identifier" varchar(255) NOT NULL,
+  "unmapped_reason_id" integer NOT NULL,
+  "query_score" double precision,
+  "target_score" double precision,
+  "ensembl_id" integer DEFAULT 0,
+  "ensembl_object_type" enum DEFAULT 'RawContig',
+  "parent" varchar(255)
 );
 
-CREATE UNIQUE INDEX unique_unmapped_obj_idx ON unmapped_object (ensembl_id, ensembl_object_type, identifier, unmapped_reason_id, parent, external_db_id);
+CREATE UNIQUE INDEX "unique_unmapped_obj_idx" ON "unmapped_object" ("ensembl_id", "ensembl_object_type", "identifier", "unmapped_reason_id", "parent", "external_db_id");
 
 --
--- Table: unmapped_reason
+-- Table: "unmapped_reason"
 --
-CREATE TABLE unmapped_reason (
-  unmapped_reason_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  summary_description varchar(255),
-  full_description varchar(255)
+CREATE TABLE "unmapped_reason" (
+  "unmapped_reason_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "summary_description" varchar(255),
+  "full_description" varchar(255)
 );
 
 --
--- Table: xref
+-- Table: "xref"
 --
-CREATE TABLE xref (
-  xref_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  external_db_id integer NOT NULL,
-  dbprimary_acc varchar(512) NOT NULL,
-  display_label varchar(512) NOT NULL,
-  version varchar(10),
-  description text,
-  info_type enum NOT NULL DEFAULT 'NONE',
-  info_text varchar(255) NOT NULL DEFAULT ''
+CREATE TABLE "xref" (
+  "xref_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "external_db_id" integer NOT NULL,
+  "dbprimary_acc" varchar(512) NOT NULL,
+  "display_label" varchar(512) NOT NULL,
+  "version" varchar(10),
+  "description" text,
+  "info_type" enum NOT NULL DEFAULT 'NONE',
+  "info_text" varchar(255) NOT NULL DEFAULT ''
 );
 
-CREATE UNIQUE INDEX id_index ON xref (dbprimary_acc, external_db_id, info_type, info_text, version);
+CREATE UNIQUE INDEX "id_index" ON "xref" ("dbprimary_acc", "external_db_id", "info_type", "info_text", "version");
 
 COMMIT;
diff --git a/modules/t/test-genome-DBs/homo_sapiens/patch/SQLite/table.sql b/modules/t/test-genome-DBs/homo_sapiens/patch/SQLite/table.sql
index 248a3dff3d9d2a6fe69911fdfeed484f117d94d5..ebfe9a79501ec87079f5ec18d86127f00887b777 100644
--- a/modules/t/test-genome-DBs/homo_sapiens/patch/SQLite/table.sql
+++ b/modules/t/test-genome-DBs/homo_sapiens/patch/SQLite/table.sql
@@ -1,1002 +1,1002 @@
 -- 
 -- Created by SQL::Translator::Producer::SQLite
--- Created on Thu Jun 28 16:51:18 2018
+-- Created on Wed Sep 26 12:06:47 2018
 -- 
 
 BEGIN TRANSACTION;
 
 --
--- Table: alt_allele
+-- Table: "alt_allele"
 --
-CREATE TABLE alt_allele (
-  alt_allele_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  alt_allele_group_id integer NOT NULL,
-  gene_id integer NOT NULL
+CREATE TABLE "alt_allele" (
+  "alt_allele_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "alt_allele_group_id" integer NOT NULL,
+  "gene_id" integer NOT NULL
 );
 
-CREATE UNIQUE INDEX gene_idx ON alt_allele (gene_id);
+CREATE UNIQUE INDEX "gene_idx" ON "alt_allele" ("gene_id");
 
 --
--- Table: alt_allele_attrib
+-- Table: "alt_allele_attrib"
 --
-CREATE TABLE alt_allele_attrib (
-  alt_allele_id integer,
-  attrib enum
+CREATE TABLE "alt_allele_attrib" (
+  "alt_allele_id" integer,
+  "attrib" enum
 );
 
 --
--- Table: alt_allele_group
+-- Table: "alt_allele_group"
 --
-CREATE TABLE alt_allele_group (
-  alt_allele_group_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL
+CREATE TABLE "alt_allele_group" (
+  "alt_allele_group_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL
 );
 
 --
--- Table: analysis
+-- Table: "analysis"
 --
-CREATE TABLE analysis (
-  analysis_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  created datetime,
-  logic_name varchar(40) NOT NULL DEFAULT '',
-  db varchar(120),
-  db_version varchar(40),
-  db_file varchar(120),
-  program varchar(80),
-  program_version varchar(40),
-  program_file varchar(80),
-  parameters text,
-  module varchar(80),
-  module_version varchar(40),
-  gff_source varchar(40),
-  gff_feature varchar(40)
+CREATE TABLE "analysis" (
+  "analysis_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "created" datetime,
+  "logic_name" varchar(40) NOT NULL DEFAULT '',
+  "db" varchar(120),
+  "db_version" varchar(40),
+  "db_file" varchar(120),
+  "program" varchar(80),
+  "program_version" varchar(40),
+  "program_file" varchar(80),
+  "parameters" text,
+  "module" varchar(80),
+  "module_version" varchar(40),
+  "gff_source" varchar(40),
+  "gff_feature" varchar(40)
 );
 
-CREATE UNIQUE INDEX logic_name_idx ON analysis (logic_name);
+CREATE UNIQUE INDEX "logic_name_idx" ON "analysis" ("logic_name");
 
 --
--- Table: analysis_description
+-- Table: "analysis_description"
 --
-CREATE TABLE analysis_description (
-  analysis_id integer NOT NULL DEFAULT 0,
-  description text,
-  display_label varchar(255),
-  displayable tinyint NOT NULL DEFAULT 1,
-  web_data text
+CREATE TABLE "analysis_description" (
+  "analysis_id" integer NOT NULL DEFAULT 0,
+  "description" text,
+  "display_label" varchar(255),
+  "displayable" tinyint NOT NULL DEFAULT 1,
+  "web_data" text
 );
 
-CREATE UNIQUE INDEX analysis_idx ON analysis_description (analysis_id);
+CREATE UNIQUE INDEX "analysis_idx" ON "analysis_description" ("analysis_id");
 
 --
--- Table: assembly
+-- Table: "assembly"
 --
-CREATE TABLE assembly (
-  asm_seq_region_id integer NOT NULL DEFAULT 0,
-  cmp_seq_region_id integer NOT NULL DEFAULT 0,
-  asm_start integer NOT NULL DEFAULT 0,
-  asm_end integer NOT NULL DEFAULT 0,
-  cmp_start integer NOT NULL DEFAULT 0,
-  cmp_end integer NOT NULL DEFAULT 0,
-  ori tinyint NOT NULL DEFAULT 0
+CREATE TABLE "assembly" (
+  "asm_seq_region_id" integer NOT NULL DEFAULT 0,
+  "cmp_seq_region_id" integer NOT NULL DEFAULT 0,
+  "asm_start" integer NOT NULL DEFAULT 0,
+  "asm_end" integer NOT NULL DEFAULT 0,
+  "cmp_start" integer NOT NULL DEFAULT 0,
+  "cmp_end" integer NOT NULL DEFAULT 0,
+  "ori" tinyint NOT NULL DEFAULT 0
 );
 
-CREATE UNIQUE INDEX all_idx ON assembly (asm_seq_region_id, cmp_seq_region_id, asm_start, asm_end, cmp_start, cmp_end, ori);
+CREATE UNIQUE INDEX "all_idx" ON "assembly" ("asm_seq_region_id", "cmp_seq_region_id", "asm_start", "asm_end", "cmp_start", "cmp_end", "ori");
 
 --
--- Table: assembly_exception
+-- Table: "assembly_exception"
 --
-CREATE TABLE assembly_exception (
-  assembly_exception_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  exc_type enum NOT NULL DEFAULT 'HAP',
-  exc_seq_region_id integer NOT NULL DEFAULT 0,
-  exc_seq_region_start integer NOT NULL DEFAULT 0,
-  exc_seq_region_end integer NOT NULL DEFAULT 0,
-  ori integer NOT NULL DEFAULT 0
+CREATE TABLE "assembly_exception" (
+  "assembly_exception_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "exc_type" enum NOT NULL DEFAULT 'HAP',
+  "exc_seq_region_id" integer NOT NULL DEFAULT 0,
+  "exc_seq_region_start" integer NOT NULL DEFAULT 0,
+  "exc_seq_region_end" integer NOT NULL DEFAULT 0,
+  "ori" integer NOT NULL DEFAULT 0
 );
 
 --
--- Table: associated_group
+-- Table: "associated_group"
 --
-CREATE TABLE associated_group (
-  associated_group_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  description varchar(128)
+CREATE TABLE "associated_group" (
+  "associated_group_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "description" varchar(128)
 );
 
 --
--- Table: associated_xref
+-- Table: "associated_xref"
 --
-CREATE TABLE associated_xref (
-  associated_xref_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  object_xref_id integer NOT NULL DEFAULT 0,
-  xref_id integer NOT NULL DEFAULT 0,
-  source_xref_id integer,
-  condition_type varchar(128),
-  associated_group_id integer,
-  rank integer DEFAULT 0
+CREATE TABLE "associated_xref" (
+  "associated_xref_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "object_xref_id" integer NOT NULL DEFAULT 0,
+  "xref_id" integer NOT NULL DEFAULT 0,
+  "source_xref_id" integer,
+  "condition_type" varchar(128),
+  "associated_group_id" integer,
+  "rank" integer DEFAULT 0
 );
 
-CREATE UNIQUE INDEX object_associated_source_type_idx ON associated_xref (object_xref_id, xref_id, source_xref_id, condition_type, associated_group_id);
+CREATE UNIQUE INDEX "object_associated_source_type_idx" ON "associated_xref" ("object_xref_id", "xref_id", "source_xref_id", "condition_type", "associated_group_id");
 
 --
--- Table: attrib_type
+-- Table: "attrib_type"
 --
-CREATE TABLE attrib_type (
-  attrib_type_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  code varchar(20) NOT NULL DEFAULT '',
-  name varchar(255) NOT NULL DEFAULT '',
-  description text
+CREATE TABLE "attrib_type" (
+  "attrib_type_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "code" varchar(20) NOT NULL DEFAULT '',
+  "name" varchar(255) NOT NULL DEFAULT '',
+  "description" text
 );
 
-CREATE UNIQUE INDEX code_idx ON attrib_type (code);
+CREATE UNIQUE INDEX "code_idx" ON "attrib_type" ("code");
 
 --
--- Table: biotype
+-- Table: "biotype"
 --
-CREATE TABLE biotype (
-  biotype_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  name varchar(64) NOT NULL,
-  object_type enum NOT NULL DEFAULT 'gene',
-  db_type varchar NOT NULL DEFAULT 'core',
-  attrib_type_id integer,
-  description text,
-  biotype_group enum,
-  so_acc varchar(64)
+CREATE TABLE "biotype" (
+  "biotype_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "name" varchar(64) NOT NULL,
+  "object_type" enum NOT NULL DEFAULT 'gene',
+  "db_type" varchar NOT NULL DEFAULT 'core',
+  "attrib_type_id" integer,
+  "description" text,
+  "biotype_group" enum,
+  "so_acc" varchar(64)
 );
 
-CREATE UNIQUE INDEX name_type_idx ON biotype (name, object_type);
+CREATE UNIQUE INDEX "name_type_idx" ON "biotype" ("name", "object_type");
 
 --
--- Table: coord_system
+-- Table: "coord_system"
 --
-CREATE TABLE coord_system (
-  coord_system_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  species_id integer NOT NULL DEFAULT 1,
-  name varchar(40) NOT NULL,
-  version varchar(255),
-  rank integer NOT NULL,
-  attrib varchar
+CREATE TABLE "coord_system" (
+  "coord_system_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "species_id" integer NOT NULL DEFAULT 1,
+  "name" varchar(40) NOT NULL,
+  "version" varchar(255),
+  "rank" integer NOT NULL,
+  "attrib" varchar
 );
 
-CREATE UNIQUE INDEX name_idx ON coord_system (name, version, species_id);
+CREATE UNIQUE INDEX "name_idx" ON "coord_system" ("name", "version", "species_id");
 
-CREATE UNIQUE INDEX rank_idx ON coord_system (rank, species_id);
+CREATE UNIQUE INDEX "rank_idx" ON "coord_system" ("rank", "species_id");
 
 --
--- Table: data_file
+-- Table: "data_file"
 --
-CREATE TABLE data_file (
-  data_file_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  coord_system_id integer NOT NULL,
-  analysis_id smallint NOT NULL,
-  name varchar(100) NOT NULL,
-  version_lock tinyint NOT NULL DEFAULT 0,
-  absolute tinyint NOT NULL DEFAULT 0,
-  url text,
-  file_type enum
+CREATE TABLE "data_file" (
+  "data_file_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "coord_system_id" integer NOT NULL,
+  "analysis_id" smallint NOT NULL,
+  "name" varchar(100) NOT NULL,
+  "version_lock" tinyint NOT NULL DEFAULT 0,
+  "absolute" tinyint NOT NULL DEFAULT 0,
+  "url" text,
+  "file_type" enum
 );
 
-CREATE UNIQUE INDEX df_unq_idx ON data_file (coord_system_id, analysis_id, name, file_type);
+CREATE UNIQUE INDEX "df_unq_idx" ON "data_file" ("coord_system_id", "analysis_id", "name", "file_type");
 
 --
--- Table: density_feature
+-- Table: "density_feature"
 --
-CREATE TABLE density_feature (
-  density_feature_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  density_type_id integer NOT NULL DEFAULT 0,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  density_value float NOT NULL DEFAULT 0
+CREATE TABLE "density_feature" (
+  "density_feature_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "density_type_id" integer NOT NULL DEFAULT 0,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "density_value" float NOT NULL DEFAULT 0
 );
 
 --
--- Table: density_type
+-- Table: "density_type"
 --
-CREATE TABLE density_type (
-  density_type_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  analysis_id integer NOT NULL DEFAULT 0,
-  block_size integer NOT NULL DEFAULT 0,
-  region_features integer NOT NULL DEFAULT 0,
-  value_type enum NOT NULL DEFAULT 'sum'
+CREATE TABLE "density_type" (
+  "density_type_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "analysis_id" integer NOT NULL DEFAULT 0,
+  "block_size" integer NOT NULL DEFAULT 0,
+  "region_features" integer NOT NULL DEFAULT 0,
+  "value_type" enum NOT NULL DEFAULT 'sum'
 );
 
-CREATE UNIQUE INDEX analysis_id ON density_type (analysis_id, block_size, region_features);
+CREATE UNIQUE INDEX "analysis_id" ON "density_type" ("analysis_id", "block_size", "region_features");
 
 --
--- Table: dependent_xref
+-- Table: "dependent_xref"
 --
-CREATE TABLE dependent_xref (
-  object_xref_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  master_xref_id integer NOT NULL,
-  dependent_xref_id integer NOT NULL
+CREATE TABLE "dependent_xref" (
+  "object_xref_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "master_xref_id" integer NOT NULL,
+  "dependent_xref_id" integer NOT NULL
 );
 
 --
--- Table: ditag
+-- Table: "ditag"
 --
-CREATE TABLE ditag (
-  ditag_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  name varchar(30),
-  type varchar(30),
-  tag_count smallint DEFAULT 1,
-  sequence text
+CREATE TABLE "ditag" (
+  "ditag_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "name" varchar(30),
+  "type" varchar(30),
+  "tag_count" smallint DEFAULT 1,
+  "sequence" text
 );
 
 --
--- Table: ditag_feature
+-- Table: "ditag_feature"
 --
-CREATE TABLE ditag_feature (
-  ditag_feature_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  ditag_id integer NOT NULL DEFAULT 0,
-  ditag_pair_id integer NOT NULL DEFAULT 0,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  seq_region_strand tinyint NOT NULL DEFAULT 0,
-  analysis_id integer NOT NULL DEFAULT 0,
-  hit_start integer NOT NULL DEFAULT 0,
-  hit_end integer NOT NULL DEFAULT 0,
-  hit_strand tinyint NOT NULL DEFAULT 0,
-  cigar_line text,
-  ditag_side char(1) DEFAULT ''
+CREATE TABLE "ditag_feature" (
+  "ditag_feature_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "ditag_id" integer NOT NULL DEFAULT 0,
+  "ditag_pair_id" integer NOT NULL DEFAULT 0,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "seq_region_strand" tinyint NOT NULL DEFAULT 0,
+  "analysis_id" integer NOT NULL DEFAULT 0,
+  "hit_start" integer NOT NULL DEFAULT 0,
+  "hit_end" integer NOT NULL DEFAULT 0,
+  "hit_strand" tinyint NOT NULL DEFAULT 0,
+  "cigar_line" text,
+  "ditag_side" char(1) DEFAULT ''
 );
 
 --
--- Table: dna
+-- Table: "dna"
 --
-CREATE TABLE dna (
-  seq_region_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL DEFAULT 0,
-  sequence mediumtext NOT NULL
+CREATE TABLE "dna" (
+  "seq_region_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL DEFAULT 0,
+  "sequence" mediumtext NOT NULL
 );
 
 --
--- Table: dna_align_feature
+-- Table: "dna_align_feature"
 --
-CREATE TABLE dna_align_feature (
-  dna_align_feature_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  seq_region_strand tinyint NOT NULL DEFAULT 0,
-  hit_start integer NOT NULL DEFAULT 0,
-  hit_end integer NOT NULL DEFAULT 0,
-  hit_strand tinyint NOT NULL DEFAULT 0,
-  hit_name varchar(40) NOT NULL DEFAULT '',
-  analysis_id integer NOT NULL DEFAULT 0,
-  score double precision,
-  evalue double precision,
-  perc_ident float,
-  cigar_line text,
-  external_db_id smallint,
-  hcoverage double precision,
-  align_type enum DEFAULT 'ensembl'
+CREATE TABLE "dna_align_feature" (
+  "dna_align_feature_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "seq_region_strand" tinyint NOT NULL DEFAULT 0,
+  "hit_start" integer NOT NULL DEFAULT 0,
+  "hit_end" integer NOT NULL DEFAULT 0,
+  "hit_strand" tinyint NOT NULL DEFAULT 0,
+  "hit_name" varchar(40) NOT NULL DEFAULT '',
+  "analysis_id" integer NOT NULL DEFAULT 0,
+  "score" double precision,
+  "evalue" double precision,
+  "perc_ident" float,
+  "cigar_line" text,
+  "external_db_id" smallint,
+  "hcoverage" double precision,
+  "align_type" enum DEFAULT 'ensembl'
 );
 
 --
--- Table: dna_align_feature_attrib
+-- Table: "dna_align_feature_attrib"
 --
-CREATE TABLE dna_align_feature_attrib (
-  dna_align_feature_id integer NOT NULL,
-  attrib_type_id smallint NOT NULL,
-  value text NOT NULL
+CREATE TABLE "dna_align_feature_attrib" (
+  "dna_align_feature_id" integer NOT NULL,
+  "attrib_type_id" smallint NOT NULL,
+  "value" text NOT NULL
 );
 
-CREATE UNIQUE INDEX dna_align_feature_attribx ON dna_align_feature_attrib (dna_align_feature_id, attrib_type_id, value);
+CREATE UNIQUE INDEX "dna_align_feature_attribx" ON "dna_align_feature_attrib" ("dna_align_feature_id", "attrib_type_id", "value");
 
 --
--- Table: exon
+-- Table: "exon"
 --
-CREATE TABLE exon (
-  exon_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL,
-  seq_region_start integer NOT NULL,
-  seq_region_end integer NOT NULL,
-  seq_region_strand tinyint NOT NULL,
-  phase tinyint NOT NULL,
-  end_phase tinyint NOT NULL,
-  is_current tinyint NOT NULL DEFAULT 1,
-  is_constitutive tinyint NOT NULL DEFAULT 0,
-  stable_id varchar(128),
-  version smallint,
-  created_date datetime,
-  modified_date datetime
+CREATE TABLE "exon" (
+  "exon_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL,
+  "seq_region_start" integer NOT NULL,
+  "seq_region_end" integer NOT NULL,
+  "seq_region_strand" tinyint NOT NULL,
+  "phase" tinyint NOT NULL,
+  "end_phase" tinyint NOT NULL,
+  "is_current" tinyint NOT NULL DEFAULT 1,
+  "is_constitutive" tinyint NOT NULL DEFAULT 0,
+  "stable_id" varchar(128),
+  "version" smallint,
+  "created_date" datetime,
+  "modified_date" datetime
 );
 
 --
--- Table: exon_transcript
+-- Table: "exon_transcript"
 --
-CREATE TABLE exon_transcript (
-  exon_id integer NOT NULL DEFAULT 0,
-  transcript_id integer NOT NULL DEFAULT 0,
-  rank integer NOT NULL DEFAULT 0,
-  PRIMARY KEY (exon_id, transcript_id, rank)
+CREATE TABLE "exon_transcript" (
+  "exon_id" integer NOT NULL DEFAULT 0,
+  "transcript_id" integer NOT NULL DEFAULT 0,
+  "rank" integer NOT NULL DEFAULT 0,
+  PRIMARY KEY ("exon_id", "transcript_id", "rank")
 );
 
 --
--- Table: external_db
+-- Table: "external_db"
 --
-CREATE TABLE external_db (
-  external_db_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL DEFAULT 0,
-  db_name varchar(27) NOT NULL DEFAULT '',
-  db_release varchar(40) NOT NULL DEFAULT '',
-  status enum NOT NULL DEFAULT 'KNOWNXREF',
-  priority integer NOT NULL DEFAULT 0,
-  db_display_name varchar(255),
-  type enum,
-  secondary_db_name varchar(255),
-  secondary_db_table varchar(255),
-  description text
+CREATE TABLE "external_db" (
+  "external_db_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL DEFAULT 0,
+  "db_name" varchar(27) NOT NULL DEFAULT '',
+  "db_release" varchar(40) NOT NULL DEFAULT '',
+  "status" enum NOT NULL DEFAULT 'KNOWNXREF',
+  "priority" integer NOT NULL DEFAULT 0,
+  "db_display_name" varchar(255),
+  "type" enum,
+  "secondary_db_name" varchar(255),
+  "secondary_db_table" varchar(255),
+  "description" text
 );
 
-CREATE UNIQUE INDEX db_name_db_release_idx ON external_db (db_name, db_release);
+CREATE UNIQUE INDEX "db_name_db_release_idx" ON "external_db" ("db_name", "db_release");
 
 --
--- Table: external_synonym
+-- Table: "external_synonym"
 --
-CREATE TABLE external_synonym (
-  xref_id integer NOT NULL DEFAULT 0,
-  synonym varchar(40) NOT NULL DEFAULT '',
-  PRIMARY KEY (xref_id, synonym)
+CREATE TABLE "external_synonym" (
+  "xref_id" integer NOT NULL DEFAULT 0,
+  "synonym" varchar(40) NOT NULL DEFAULT '',
+  PRIMARY KEY ("xref_id", "synonym")
 );
 
 --
--- Table: gene
+-- Table: "gene"
 --
-CREATE TABLE gene (
-  gene_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  biotype varchar(40) NOT NULL,
-  analysis_id smallint NOT NULL,
-  seq_region_id integer NOT NULL,
-  seq_region_start integer NOT NULL,
-  seq_region_end integer NOT NULL,
-  seq_region_strand tinyint NOT NULL,
-  display_xref_id integer,
-  source varchar(40) NOT NULL,
-  description text,
-  is_current tinyint NOT NULL DEFAULT 1,
-  canonical_transcript_id integer NOT NULL,
-  stable_id varchar(128),
-  version smallint,
-  created_date datetime,
-  modified_date datetime
+CREATE TABLE "gene" (
+  "gene_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "biotype" varchar(40) NOT NULL,
+  "analysis_id" smallint NOT NULL,
+  "seq_region_id" integer NOT NULL,
+  "seq_region_start" integer NOT NULL,
+  "seq_region_end" integer NOT NULL,
+  "seq_region_strand" tinyint NOT NULL,
+  "display_xref_id" integer,
+  "source" varchar(40) NOT NULL,
+  "description" text,
+  "is_current" tinyint NOT NULL DEFAULT 1,
+  "canonical_transcript_id" integer NOT NULL,
+  "stable_id" varchar(128),
+  "version" smallint,
+  "created_date" datetime,
+  "modified_date" datetime
 );
 
 --
--- Table: gene_archive
+-- Table: "gene_archive"
 --
-CREATE TABLE gene_archive (
-  gene_stable_id varchar(128) NOT NULL DEFAULT '',
-  gene_version smallint NOT NULL DEFAULT 0,
-  transcript_stable_id varchar(128) NOT NULL DEFAULT '',
-  transcript_version smallint NOT NULL DEFAULT 0,
-  translation_stable_id varchar(128) NOT NULL DEFAULT '',
-  translation_version smallint NOT NULL DEFAULT 0,
-  peptide_archive_id integer NOT NULL DEFAULT 0,
-  mapping_session_id integer NOT NULL DEFAULT 0
+CREATE TABLE "gene_archive" (
+  "gene_stable_id" varchar(128) NOT NULL DEFAULT '',
+  "gene_version" smallint NOT NULL DEFAULT 0,
+  "transcript_stable_id" varchar(128) NOT NULL DEFAULT '',
+  "transcript_version" smallint NOT NULL DEFAULT 0,
+  "translation_stable_id" varchar(128) NOT NULL DEFAULT '',
+  "translation_version" smallint NOT NULL DEFAULT 0,
+  "peptide_archive_id" integer NOT NULL DEFAULT 0,
+  "mapping_session_id" integer NOT NULL DEFAULT 0
 );
 
 --
--- Table: gene_attrib
+-- Table: "gene_attrib"
 --
-CREATE TABLE gene_attrib (
-  gene_id integer NOT NULL DEFAULT 0,
-  attrib_type_id smallint NOT NULL DEFAULT 0,
-  value text NOT NULL
+CREATE TABLE "gene_attrib" (
+  "gene_id" integer NOT NULL DEFAULT 0,
+  "attrib_type_id" smallint NOT NULL DEFAULT 0,
+  "value" text NOT NULL
 );
 
-CREATE UNIQUE INDEX gene_attribx ON gene_attrib (gene_id, attrib_type_id, value);
+CREATE UNIQUE INDEX "gene_attribx" ON "gene_attrib" ("gene_id", "attrib_type_id", "value");
 
 --
--- Table: genome_statistics
+-- Table: "genome_statistics"
 --
-CREATE TABLE genome_statistics (
-  genome_statistics_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  statistic varchar(128) NOT NULL,
-  value bigint NOT NULL DEFAULT 0,
-  species_id integer DEFAULT 1,
-  attrib_type_id integer,
-  timestamp datetime
+CREATE TABLE "genome_statistics" (
+  "genome_statistics_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "statistic" varchar(128) NOT NULL,
+  "value" bigint NOT NULL DEFAULT 0,
+  "species_id" integer DEFAULT 1,
+  "attrib_type_id" integer,
+  "timestamp" datetime
 );
 
-CREATE UNIQUE INDEX stats_uniq ON genome_statistics (statistic, attrib_type_id, species_id);
+CREATE UNIQUE INDEX "stats_uniq" ON "genome_statistics" ("statistic", "attrib_type_id", "species_id");
 
 --
--- Table: identity_xref
+-- Table: "identity_xref"
 --
-CREATE TABLE identity_xref (
-  object_xref_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL DEFAULT 0,
-  xref_identity integer,
-  ensembl_identity integer,
-  xref_start integer,
-  xref_end integer,
-  ensembl_start integer,
-  ensembl_end integer,
-  cigar_line text,
-  score double precision,
-  evalue double precision
+CREATE TABLE "identity_xref" (
+  "object_xref_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL DEFAULT 0,
+  "xref_identity" integer,
+  "ensembl_identity" integer,
+  "xref_start" integer,
+  "xref_end" integer,
+  "ensembl_start" integer,
+  "ensembl_end" integer,
+  "cigar_line" text,
+  "score" double precision,
+  "evalue" double precision
 );
 
 --
--- Table: interpro
+-- Table: "interpro"
 --
-CREATE TABLE interpro (
-  interpro_ac varchar(40) NOT NULL DEFAULT '',
-  id varchar(40) NOT NULL
+CREATE TABLE "interpro" (
+  "interpro_ac" varchar(40) NOT NULL DEFAULT '',
+  "id" varchar(40) NOT NULL
 );
 
-CREATE UNIQUE INDEX accession_idx ON interpro (interpro_ac, id);
+CREATE UNIQUE INDEX "accession_idx" ON "interpro" ("interpro_ac", "id");
 
 --
--- Table: intron_supporting_evidence
+-- Table: "intron_supporting_evidence"
 --
-CREATE TABLE intron_supporting_evidence (
-  intron_supporting_evidence_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  analysis_id smallint NOT NULL,
-  seq_region_id integer NOT NULL,
-  seq_region_start integer NOT NULL,
-  seq_region_end integer NOT NULL,
-  seq_region_strand tinyint NOT NULL,
-  hit_name varchar(100) NOT NULL,
-  score decimal(10,3),
-  score_type enum DEFAULT 'NONE',
-  is_splice_canonical tinyint NOT NULL DEFAULT 0
+CREATE TABLE "intron_supporting_evidence" (
+  "intron_supporting_evidence_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "analysis_id" smallint NOT NULL,
+  "seq_region_id" integer NOT NULL,
+  "seq_region_start" integer NOT NULL,
+  "seq_region_end" integer NOT NULL,
+  "seq_region_strand" tinyint NOT NULL,
+  "hit_name" varchar(100) NOT NULL,
+  "score" decimal(10,3),
+  "score_type" enum DEFAULT 'NONE',
+  "is_splice_canonical" tinyint NOT NULL DEFAULT 0
 );
 
-CREATE UNIQUE INDEX analysis_id02 ON intron_supporting_evidence (analysis_id, seq_region_id, seq_region_start, seq_region_end, seq_region_strand, hit_name);
+CREATE UNIQUE INDEX "analysis_id02" ON "intron_supporting_evidence" ("analysis_id", "seq_region_id", "seq_region_start", "seq_region_end", "seq_region_strand", "hit_name");
 
 --
--- Table: karyotype
+-- Table: "karyotype"
 --
-CREATE TABLE karyotype (
-  karyotype_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  band varchar(40),
-  stain varchar(40)
+CREATE TABLE "karyotype" (
+  "karyotype_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "band" varchar(40),
+  "stain" varchar(40)
 );
 
 --
--- Table: map
+-- Table: "map"
 --
-CREATE TABLE map (
-  map_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  map_name varchar(30) NOT NULL DEFAULT ''
+CREATE TABLE "map" (
+  "map_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "map_name" varchar(30) NOT NULL DEFAULT ''
 );
 
 --
--- Table: mapping_session
+-- Table: "mapping_session"
 --
-CREATE TABLE mapping_session (
-  mapping_session_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  old_db_name varchar(80) NOT NULL DEFAULT '',
-  new_db_name varchar(80) NOT NULL DEFAULT '',
-  old_release varchar(5) NOT NULL DEFAULT '',
-  new_release varchar(5) NOT NULL DEFAULT '',
-  old_assembly varchar(20) NOT NULL DEFAULT '',
-  new_assembly varchar(20) NOT NULL DEFAULT '',
-  created datetime
+CREATE TABLE "mapping_session" (
+  "mapping_session_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "old_db_name" varchar(80) NOT NULL DEFAULT '',
+  "new_db_name" varchar(80) NOT NULL DEFAULT '',
+  "old_release" varchar(5) NOT NULL DEFAULT '',
+  "new_release" varchar(5) NOT NULL DEFAULT '',
+  "old_assembly" varchar(20) NOT NULL DEFAULT '',
+  "new_assembly" varchar(20) NOT NULL DEFAULT '',
+  "created" datetime
 );
 
 --
--- Table: mapping_set
+-- Table: "mapping_set"
 --
-CREATE TABLE mapping_set (
-  mapping_set_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  internal_schema_build varchar(20) NOT NULL,
-  external_schema_build varchar(20) NOT NULL
+CREATE TABLE "mapping_set" (
+  "mapping_set_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "internal_schema_build" varchar(20) NOT NULL,
+  "external_schema_build" varchar(20) NOT NULL
 );
 
-CREATE UNIQUE INDEX mapping_idx ON mapping_set (internal_schema_build, external_schema_build);
+CREATE UNIQUE INDEX "mapping_idx" ON "mapping_set" ("internal_schema_build", "external_schema_build");
 
 --
--- Table: marker
+-- Table: "marker"
 --
-CREATE TABLE marker (
-  marker_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  display_marker_synonym_id integer,
-  left_primer varchar(100) NOT NULL DEFAULT '',
-  right_primer varchar(100) NOT NULL DEFAULT '',
-  min_primer_dist integer NOT NULL DEFAULT 0,
-  max_primer_dist integer NOT NULL DEFAULT 0,
-  priority integer,
-  type enum
+CREATE TABLE "marker" (
+  "marker_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "display_marker_synonym_id" integer,
+  "left_primer" varchar(100) NOT NULL DEFAULT '',
+  "right_primer" varchar(100) NOT NULL DEFAULT '',
+  "min_primer_dist" integer NOT NULL DEFAULT 0,
+  "max_primer_dist" integer NOT NULL DEFAULT 0,
+  "priority" integer,
+  "type" enum
 );
 
 --
--- Table: marker_feature
+-- Table: "marker_feature"
 --
-CREATE TABLE marker_feature (
-  marker_feature_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  marker_id integer NOT NULL DEFAULT 0,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  analysis_id integer NOT NULL DEFAULT 0,
-  map_weight integer
+CREATE TABLE "marker_feature" (
+  "marker_feature_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "marker_id" integer NOT NULL DEFAULT 0,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "analysis_id" integer NOT NULL DEFAULT 0,
+  "map_weight" integer
 );
 
 --
--- Table: marker_map_location
+-- Table: "marker_map_location"
 --
-CREATE TABLE marker_map_location (
-  marker_id integer NOT NULL DEFAULT 0,
-  map_id integer NOT NULL DEFAULT 0,
-  chromosome_name varchar(15) NOT NULL DEFAULT '',
-  marker_synonym_id integer NOT NULL DEFAULT 0,
-  position varchar(15) NOT NULL DEFAULT '',
-  lod_score double precision,
-  PRIMARY KEY (marker_id, map_id)
+CREATE TABLE "marker_map_location" (
+  "marker_id" integer NOT NULL DEFAULT 0,
+  "map_id" integer NOT NULL DEFAULT 0,
+  "chromosome_name" varchar(15) NOT NULL DEFAULT '',
+  "marker_synonym_id" integer NOT NULL DEFAULT 0,
+  "position" varchar(15) NOT NULL DEFAULT '',
+  "lod_score" double precision,
+  PRIMARY KEY ("marker_id", "map_id")
 );
 
 --
--- Table: marker_synonym
+-- Table: "marker_synonym"
 --
-CREATE TABLE marker_synonym (
-  marker_synonym_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  marker_id integer NOT NULL DEFAULT 0,
-  source varchar(20),
-  name varchar(30)
+CREATE TABLE "marker_synonym" (
+  "marker_synonym_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "marker_id" integer NOT NULL DEFAULT 0,
+  "source" varchar(20),
+  "name" varchar(30)
 );
 
 --
--- Table: meta
+-- Table: "meta"
 --
-CREATE TABLE meta (
-  meta_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  species_id integer DEFAULT 1,
-  meta_key varchar(40) NOT NULL,
-  meta_value varchar(255) NOT NULL
+CREATE TABLE "meta" (
+  "meta_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "species_id" integer DEFAULT 1,
+  "meta_key" varchar(40) NOT NULL,
+  "meta_value" varchar(255) NOT NULL
 );
 
-CREATE UNIQUE INDEX species_key_value_idx ON meta (species_id, meta_key, meta_value);
+CREATE UNIQUE INDEX "species_key_value_idx" ON "meta" ("species_id", "meta_key", "meta_value");
 
 --
--- Table: meta_coord
+-- Table: "meta_coord"
 --
-CREATE TABLE meta_coord (
-  table_name varchar(40) NOT NULL DEFAULT '',
-  coord_system_id integer NOT NULL DEFAULT 0,
-  max_length integer
+CREATE TABLE "meta_coord" (
+  "table_name" varchar(40) NOT NULL DEFAULT '',
+  "coord_system_id" integer NOT NULL DEFAULT 0,
+  "max_length" integer
 );
 
-CREATE UNIQUE INDEX cs_table_name_idx ON meta_coord (coord_system_id, table_name);
+CREATE UNIQUE INDEX "cs_table_name_idx" ON "meta_coord" ("coord_system_id", "table_name");
 
 --
--- Table: misc_attrib
+-- Table: "misc_attrib"
 --
-CREATE TABLE misc_attrib (
-  misc_feature_id integer NOT NULL DEFAULT 0,
-  attrib_type_id smallint NOT NULL DEFAULT 0,
-  value text NOT NULL
+CREATE TABLE "misc_attrib" (
+  "misc_feature_id" integer NOT NULL DEFAULT 0,
+  "attrib_type_id" smallint NOT NULL DEFAULT 0,
+  "value" text NOT NULL
 );
 
-CREATE UNIQUE INDEX misc_attribx ON misc_attrib (misc_feature_id, attrib_type_id, value);
+CREATE UNIQUE INDEX "misc_attribx" ON "misc_attrib" ("misc_feature_id", "attrib_type_id", "value");
 
 --
--- Table: misc_feature
+-- Table: "misc_feature"
 --
-CREATE TABLE misc_feature (
-  misc_feature_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  seq_region_strand tinyint NOT NULL DEFAULT 0
+CREATE TABLE "misc_feature" (
+  "misc_feature_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "seq_region_strand" tinyint NOT NULL DEFAULT 0
 );
 
 --
--- Table: misc_feature_misc_set
+-- Table: "misc_feature_misc_set"
 --
-CREATE TABLE misc_feature_misc_set (
-  misc_feature_id integer NOT NULL DEFAULT 0,
-  misc_set_id smallint NOT NULL DEFAULT 0,
-  PRIMARY KEY (misc_feature_id, misc_set_id)
+CREATE TABLE "misc_feature_misc_set" (
+  "misc_feature_id" integer NOT NULL DEFAULT 0,
+  "misc_set_id" smallint NOT NULL DEFAULT 0,
+  PRIMARY KEY ("misc_feature_id", "misc_set_id")
 );
 
 --
--- Table: misc_set
+-- Table: "misc_set"
 --
-CREATE TABLE misc_set (
-  misc_set_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  code varchar(25) NOT NULL DEFAULT '',
-  name varchar(255) NOT NULL DEFAULT '',
-  description text NOT NULL,
-  max_length integer NOT NULL DEFAULT 0
+CREATE TABLE "misc_set" (
+  "misc_set_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "code" varchar(25) NOT NULL DEFAULT '',
+  "name" varchar(255) NOT NULL DEFAULT '',
+  "description" text NOT NULL,
+  "max_length" integer NOT NULL DEFAULT 0
 );
 
-CREATE UNIQUE INDEX code_idx02 ON misc_set (code);
+CREATE UNIQUE INDEX "code_idx02" ON "misc_set" ("code");
 
 --
--- Table: object_xref
+-- Table: "object_xref"
 --
-CREATE TABLE object_xref (
-  object_xref_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  ensembl_id integer NOT NULL DEFAULT 0,
-  ensembl_object_type enum NOT NULL DEFAULT 'RawContig',
-  xref_id integer NOT NULL,
-  linkage_annotation varchar(255),
-  analysis_id smallint
+CREATE TABLE "object_xref" (
+  "object_xref_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "ensembl_id" integer NOT NULL DEFAULT 0,
+  "ensembl_object_type" enum NOT NULL DEFAULT 'RawContig',
+  "xref_id" integer NOT NULL,
+  "linkage_annotation" varchar(255),
+  "analysis_id" smallint
 );
 
-CREATE UNIQUE INDEX xref_idx ON object_xref (xref_id, ensembl_object_type, ensembl_id, analysis_id);
+CREATE UNIQUE INDEX "xref_idx" ON "object_xref" ("xref_id", "ensembl_object_type", "ensembl_id", "analysis_id");
 
 --
--- Table: ontology_xref
+-- Table: "ontology_xref"
 --
-CREATE TABLE ontology_xref (
-  object_xref_id integer NOT NULL DEFAULT 0,
-  linkage_type varchar(3),
-  source_xref_id integer
+CREATE TABLE "ontology_xref" (
+  "object_xref_id" integer NOT NULL DEFAULT 0,
+  "linkage_type" varchar(3),
+  "source_xref_id" integer
 );
 
-CREATE UNIQUE INDEX object_source_type_idx ON ontology_xref (object_xref_id, source_xref_id, linkage_type);
+CREATE UNIQUE INDEX "object_source_type_idx" ON "ontology_xref" ("object_xref_id", "source_xref_id", "linkage_type");
 
 --
--- Table: operon
+-- Table: "operon"
 --
-CREATE TABLE operon (
-  operon_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL,
-  seq_region_start integer NOT NULL,
-  seq_region_end integer NOT NULL,
-  seq_region_strand tinyint NOT NULL,
-  display_label varchar(255),
-  analysis_id smallint NOT NULL,
-  stable_id varchar(128),
-  version smallint,
-  created_date datetime,
-  modified_date datetime
+CREATE TABLE "operon" (
+  "operon_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL,
+  "seq_region_start" integer NOT NULL,
+  "seq_region_end" integer NOT NULL,
+  "seq_region_strand" tinyint NOT NULL,
+  "display_label" varchar(255),
+  "analysis_id" smallint NOT NULL,
+  "stable_id" varchar(128),
+  "version" smallint,
+  "created_date" datetime,
+  "modified_date" datetime
 );
 
 --
--- Table: operon_transcript
+-- Table: "operon_transcript"
 --
-CREATE TABLE operon_transcript (
-  operon_transcript_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL,
-  seq_region_start integer NOT NULL,
-  seq_region_end integer NOT NULL,
-  seq_region_strand tinyint NOT NULL,
-  operon_id integer NOT NULL,
-  display_label varchar(255),
-  analysis_id smallint NOT NULL,
-  stable_id varchar(128),
-  version smallint,
-  created_date datetime,
-  modified_date datetime
+CREATE TABLE "operon_transcript" (
+  "operon_transcript_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL,
+  "seq_region_start" integer NOT NULL,
+  "seq_region_end" integer NOT NULL,
+  "seq_region_strand" tinyint NOT NULL,
+  "operon_id" integer NOT NULL,
+  "display_label" varchar(255),
+  "analysis_id" smallint NOT NULL,
+  "stable_id" varchar(128),
+  "version" smallint,
+  "created_date" datetime,
+  "modified_date" datetime
 );
 
 --
--- Table: operon_transcript_gene
+-- Table: "operon_transcript_gene"
 --
-CREATE TABLE operon_transcript_gene (
-  operon_transcript_id integer,
-  gene_id integer
+CREATE TABLE "operon_transcript_gene" (
+  "operon_transcript_id" integer,
+  "gene_id" integer
 );
 
 --
--- Table: peptide_archive
+-- Table: "peptide_archive"
 --
-CREATE TABLE peptide_archive (
-  peptide_archive_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  md5_checksum varchar(32),
-  peptide_seq mediumtext NOT NULL
+CREATE TABLE "peptide_archive" (
+  "peptide_archive_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "md5_checksum" varchar(32),
+  "peptide_seq" mediumtext NOT NULL
 );
 
 --
--- Table: prediction_exon
+-- Table: "prediction_exon"
 --
-CREATE TABLE prediction_exon (
-  prediction_exon_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  prediction_transcript_id integer NOT NULL DEFAULT 0,
-  exon_rank smallint NOT NULL DEFAULT 0,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  seq_region_strand tinyint NOT NULL DEFAULT 0,
-  start_phase tinyint NOT NULL DEFAULT 0,
-  score double precision,
-  p_value double precision
+CREATE TABLE "prediction_exon" (
+  "prediction_exon_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "prediction_transcript_id" integer NOT NULL DEFAULT 0,
+  "exon_rank" smallint NOT NULL DEFAULT 0,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "seq_region_strand" tinyint NOT NULL DEFAULT 0,
+  "start_phase" tinyint NOT NULL DEFAULT 0,
+  "score" double precision,
+  "p_value" double precision
 );
 
 --
--- Table: prediction_transcript
+-- Table: "prediction_transcript"
 --
-CREATE TABLE prediction_transcript (
-  prediction_transcript_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  seq_region_strand tinyint NOT NULL DEFAULT 0,
-  analysis_id integer,
-  display_label varchar(255)
+CREATE TABLE "prediction_transcript" (
+  "prediction_transcript_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "seq_region_strand" tinyint NOT NULL DEFAULT 0,
+  "analysis_id" integer,
+  "display_label" varchar(255)
 );
 
 --
--- Table: protein_align_feature
+-- Table: "protein_align_feature"
 --
-CREATE TABLE protein_align_feature (
-  protein_align_feature_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  seq_region_strand tinyint NOT NULL DEFAULT 1,
-  hit_start integer NOT NULL DEFAULT 0,
-  hit_end integer NOT NULL DEFAULT 0,
-  hit_name varchar(40) NOT NULL DEFAULT '',
-  analysis_id integer NOT NULL DEFAULT 0,
-  score double precision,
-  evalue double precision,
-  perc_ident float,
-  cigar_line text,
-  external_db_id smallint,
-  hcoverage double precision,
-  align_type enum DEFAULT 'ensembl'
+CREATE TABLE "protein_align_feature" (
+  "protein_align_feature_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "seq_region_strand" tinyint NOT NULL DEFAULT 1,
+  "hit_start" integer NOT NULL DEFAULT 0,
+  "hit_end" integer NOT NULL DEFAULT 0,
+  "hit_name" varchar(40) NOT NULL DEFAULT '',
+  "analysis_id" integer NOT NULL DEFAULT 0,
+  "score" double precision,
+  "evalue" double precision,
+  "perc_ident" float,
+  "cigar_line" text,
+  "external_db_id" smallint,
+  "hcoverage" double precision,
+  "align_type" enum DEFAULT 'ensembl'
 );
 
 --
--- Table: protein_feature
+-- Table: "protein_feature"
 --
-CREATE TABLE protein_feature (
-  protein_feature_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  translation_id integer NOT NULL DEFAULT 0,
-  seq_start integer NOT NULL DEFAULT 0,
-  seq_end integer NOT NULL DEFAULT 0,
-  hit_start integer NOT NULL DEFAULT 0,
-  hit_end integer NOT NULL DEFAULT 0,
-  hit_name varchar(40) NOT NULL,
-  analysis_id integer NOT NULL DEFAULT 0,
-  score double precision NOT NULL DEFAULT 0,
-  evalue double precision,
-  perc_ident float,
-  external_data text,
-  hit_description text,
-  cigar_line text,
-  align_type enum
+CREATE TABLE "protein_feature" (
+  "protein_feature_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "translation_id" integer NOT NULL DEFAULT 0,
+  "seq_start" integer NOT NULL DEFAULT 0,
+  "seq_end" integer NOT NULL DEFAULT 0,
+  "hit_start" integer NOT NULL DEFAULT 0,
+  "hit_end" integer NOT NULL DEFAULT 0,
+  "hit_name" varchar(40) NOT NULL,
+  "analysis_id" integer NOT NULL DEFAULT 0,
+  "score" double precision NOT NULL DEFAULT 0,
+  "evalue" double precision,
+  "perc_ident" float,
+  "external_data" text,
+  "hit_description" text,
+  "cigar_line" text,
+  "align_type" enum
 );
 
-CREATE UNIQUE INDEX aln_idx ON protein_feature (translation_id, hit_name, seq_start, seq_end, hit_start, hit_end, analysis_id);
+CREATE UNIQUE INDEX "aln_idx" ON "protein_feature" ("translation_id", "hit_name", "seq_start", "seq_end", "hit_start", "hit_end", "analysis_id");
 
 --
--- Table: repeat_consensus
+-- Table: "repeat_consensus"
 --
-CREATE TABLE repeat_consensus (
-  repeat_consensus_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  repeat_name varchar(255) NOT NULL DEFAULT '',
-  repeat_class varchar(100) NOT NULL DEFAULT '',
-  repeat_type varchar(40) NOT NULL DEFAULT '',
-  repeat_consensus text
+CREATE TABLE "repeat_consensus" (
+  "repeat_consensus_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "repeat_name" varchar(255) NOT NULL DEFAULT '',
+  "repeat_class" varchar(100) NOT NULL DEFAULT '',
+  "repeat_type" varchar(40) NOT NULL DEFAULT '',
+  "repeat_consensus" text
 );
 
 --
--- Table: repeat_feature
+-- Table: "repeat_feature"
 --
-CREATE TABLE repeat_feature (
-  repeat_feature_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  seq_region_strand tinyint NOT NULL DEFAULT 1,
-  repeat_start integer NOT NULL DEFAULT 0,
-  repeat_end integer NOT NULL DEFAULT 0,
-  repeat_consensus_id integer NOT NULL DEFAULT 0,
-  analysis_id integer NOT NULL DEFAULT 0,
-  score double precision
+CREATE TABLE "repeat_feature" (
+  "repeat_feature_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "seq_region_strand" tinyint NOT NULL DEFAULT 1,
+  "repeat_start" integer NOT NULL DEFAULT 0,
+  "repeat_end" integer NOT NULL DEFAULT 0,
+  "repeat_consensus_id" integer NOT NULL DEFAULT 0,
+  "analysis_id" integer NOT NULL DEFAULT 0,
+  "score" double precision
 );
 
 --
--- Table: seq_region
+-- Table: "seq_region"
 --
-CREATE TABLE seq_region (
-  seq_region_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  name varchar(255) NOT NULL,
-  coord_system_id integer NOT NULL DEFAULT 0,
-  length integer NOT NULL DEFAULT 0
+CREATE TABLE "seq_region" (
+  "seq_region_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "name" varchar(255) NOT NULL,
+  "coord_system_id" integer NOT NULL DEFAULT 0,
+  "length" integer NOT NULL DEFAULT 0
 );
 
-CREATE UNIQUE INDEX name_cs_idx ON seq_region (name, coord_system_id);
+CREATE UNIQUE INDEX "name_cs_idx" ON "seq_region" ("name", "coord_system_id");
 
 --
--- Table: seq_region_attrib
+-- Table: "seq_region_attrib"
 --
-CREATE TABLE seq_region_attrib (
-  seq_region_id integer NOT NULL DEFAULT 0,
-  attrib_type_id smallint NOT NULL DEFAULT 0,
-  value text NOT NULL
+CREATE TABLE "seq_region_attrib" (
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "attrib_type_id" smallint NOT NULL DEFAULT 0,
+  "value" text NOT NULL
 );
 
-CREATE UNIQUE INDEX region_attribx ON seq_region_attrib (seq_region_id, attrib_type_id, value);
+CREATE UNIQUE INDEX "region_attribx" ON "seq_region_attrib" ("seq_region_id", "attrib_type_id", "value");
 
 --
--- Table: seq_region_mapping
+-- Table: "seq_region_mapping"
 --
-CREATE TABLE seq_region_mapping (
-  external_seq_region_id integer NOT NULL,
-  internal_seq_region_id integer NOT NULL,
-  mapping_set_id integer NOT NULL
+CREATE TABLE "seq_region_mapping" (
+  "external_seq_region_id" integer NOT NULL,
+  "internal_seq_region_id" integer NOT NULL,
+  "mapping_set_id" integer NOT NULL
 );
 
 --
--- Table: seq_region_synonym
+-- Table: "seq_region_synonym"
 --
-CREATE TABLE seq_region_synonym (
-  seq_region_synonym_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL,
-  synonym varchar(250) NOT NULL,
-  external_db_id smallint
+CREATE TABLE "seq_region_synonym" (
+  "seq_region_synonym_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL,
+  "synonym" varchar(250) NOT NULL,
+  "external_db_id" smallint
 );
 
-CREATE UNIQUE INDEX syn_idx ON seq_region_synonym (synonym, seq_region_id);
+CREATE UNIQUE INDEX "syn_idx" ON "seq_region_synonym" ("synonym", "seq_region_id");
 
 --
--- Table: simple_feature
+-- Table: "simple_feature"
 --
-CREATE TABLE simple_feature (
-  simple_feature_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  seq_region_strand tinyint NOT NULL DEFAULT 0,
-  display_label varchar(40) NOT NULL DEFAULT '',
-  analysis_id integer NOT NULL DEFAULT 0,
-  score double precision
+CREATE TABLE "simple_feature" (
+  "simple_feature_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "seq_region_strand" tinyint NOT NULL DEFAULT 0,
+  "display_label" varchar(40) NOT NULL DEFAULT '',
+  "analysis_id" integer NOT NULL DEFAULT 0,
+  "score" double precision
 );
 
 --
--- Table: stable_id_event
+-- Table: "stable_id_event"
 --
-CREATE TABLE stable_id_event (
-  old_stable_id varchar(128),
-  old_version smallint,
-  new_stable_id varchar(128),
-  new_version smallint,
-  mapping_session_id integer NOT NULL DEFAULT 0,
-  type enum NOT NULL DEFAULT 'gene',
-  score float NOT NULL DEFAULT 0
+CREATE TABLE "stable_id_event" (
+  "old_stable_id" varchar(128),
+  "old_version" smallint,
+  "new_stable_id" varchar(128),
+  "new_version" smallint,
+  "mapping_session_id" integer NOT NULL DEFAULT 0,
+  "type" enum NOT NULL DEFAULT 'gene',
+  "score" float NOT NULL DEFAULT 0
 );
 
-CREATE UNIQUE INDEX uni_idx ON stable_id_event (mapping_session_id, old_stable_id, old_version, new_stable_id, new_version, type);
+CREATE UNIQUE INDEX "uni_idx" ON "stable_id_event" ("mapping_session_id", "old_stable_id", "old_version", "new_stable_id", "new_version", "type");
 
 --
--- Table: supporting_feature
+-- Table: "supporting_feature"
 --
-CREATE TABLE supporting_feature (
-  exon_id integer NOT NULL DEFAULT 0,
-  feature_type enum,
-  feature_id integer NOT NULL DEFAULT 0
+CREATE TABLE "supporting_feature" (
+  "exon_id" integer NOT NULL DEFAULT 0,
+  "feature_type" enum,
+  "feature_id" integer NOT NULL DEFAULT 0
 );
 
-CREATE UNIQUE INDEX all_idx02 ON supporting_feature (exon_id, feature_type, feature_id);
+CREATE UNIQUE INDEX "all_idx02" ON "supporting_feature" ("exon_id", "feature_type", "feature_id");
 
 --
--- Table: transcript
+-- Table: "transcript"
 --
-CREATE TABLE transcript (
-  transcript_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  gene_id integer,
-  analysis_id smallint NOT NULL,
-  seq_region_id integer NOT NULL,
-  seq_region_start integer NOT NULL,
-  seq_region_end integer NOT NULL,
-  seq_region_strand tinyint NOT NULL,
-  display_xref_id integer,
-  source varchar(40) NOT NULL DEFAULT 'ensembl',
-  biotype varchar(40) NOT NULL,
-  description text,
-  is_current tinyint NOT NULL DEFAULT 1,
-  canonical_translation_id integer,
-  stable_id varchar(128),
-  version smallint,
-  created_date datetime,
-  modified_date datetime
+CREATE TABLE "transcript" (
+  "transcript_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "gene_id" integer,
+  "analysis_id" smallint NOT NULL,
+  "seq_region_id" integer NOT NULL,
+  "seq_region_start" integer NOT NULL,
+  "seq_region_end" integer NOT NULL,
+  "seq_region_strand" tinyint NOT NULL,
+  "display_xref_id" integer,
+  "source" varchar(40) NOT NULL DEFAULT 'ensembl',
+  "biotype" varchar(40) NOT NULL,
+  "description" text,
+  "is_current" tinyint NOT NULL DEFAULT 1,
+  "canonical_translation_id" integer,
+  "stable_id" varchar(128),
+  "version" smallint,
+  "created_date" datetime,
+  "modified_date" datetime
 );
 
-CREATE UNIQUE INDEX canonical_translation_idx ON transcript (canonical_translation_id);
+CREATE UNIQUE INDEX "canonical_translation_idx" ON "transcript" ("canonical_translation_id");
 
 --
--- Table: transcript_attrib
+-- Table: "transcript_attrib"
 --
-CREATE TABLE transcript_attrib (
-  transcript_id integer NOT NULL DEFAULT 0,
-  attrib_type_id smallint NOT NULL DEFAULT 0,
-  value text NOT NULL
+CREATE TABLE "transcript_attrib" (
+  "transcript_id" integer NOT NULL DEFAULT 0,
+  "attrib_type_id" smallint NOT NULL DEFAULT 0,
+  "value" text NOT NULL
 );
 
-CREATE UNIQUE INDEX transcript_attribx ON transcript_attrib (transcript_id, attrib_type_id, value);
+CREATE UNIQUE INDEX "transcript_attribx" ON "transcript_attrib" ("transcript_id", "attrib_type_id", "value");
 
 --
--- Table: transcript_intron_supporting_evidence
+-- Table: "transcript_intron_supporting_evidence"
 --
-CREATE TABLE transcript_intron_supporting_evidence (
-  transcript_id integer NOT NULL,
-  intron_supporting_evidence_id integer NOT NULL,
-  previous_exon_id integer NOT NULL,
-  next_exon_id integer NOT NULL,
-  PRIMARY KEY (intron_supporting_evidence_id, transcript_id)
+CREATE TABLE "transcript_intron_supporting_evidence" (
+  "transcript_id" integer NOT NULL,
+  "intron_supporting_evidence_id" integer NOT NULL,
+  "previous_exon_id" integer NOT NULL,
+  "next_exon_id" integer NOT NULL,
+  PRIMARY KEY ("intron_supporting_evidence_id", "transcript_id")
 );
 
 --
--- Table: transcript_supporting_feature
+-- Table: "transcript_supporting_feature"
 --
-CREATE TABLE transcript_supporting_feature (
-  transcript_id integer NOT NULL DEFAULT 0,
-  feature_type enum,
-  feature_id integer NOT NULL DEFAULT 0
+CREATE TABLE "transcript_supporting_feature" (
+  "transcript_id" integer NOT NULL DEFAULT 0,
+  "feature_type" enum,
+  "feature_id" integer NOT NULL DEFAULT 0
 );
 
-CREATE UNIQUE INDEX all_idx03 ON transcript_supporting_feature (transcript_id, feature_type, feature_id);
+CREATE UNIQUE INDEX "all_idx03" ON "transcript_supporting_feature" ("transcript_id", "feature_type", "feature_id");
 
 --
--- Table: translation
+-- Table: "translation"
 --
-CREATE TABLE translation (
-  translation_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  transcript_id integer NOT NULL,
-  seq_start integer NOT NULL,
-  start_exon_id integer NOT NULL,
-  seq_end integer NOT NULL,
-  end_exon_id integer NOT NULL,
-  stable_id varchar(128),
-  version smallint,
-  created_date datetime,
-  modified_date datetime
+CREATE TABLE "translation" (
+  "translation_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "transcript_id" integer NOT NULL,
+  "seq_start" integer NOT NULL,
+  "start_exon_id" integer NOT NULL,
+  "seq_end" integer NOT NULL,
+  "end_exon_id" integer NOT NULL,
+  "stable_id" varchar(128),
+  "version" smallint,
+  "created_date" datetime,
+  "modified_date" datetime
 );
 
 --
--- Table: translation_attrib
+-- Table: "translation_attrib"
 --
-CREATE TABLE translation_attrib (
-  translation_id integer NOT NULL DEFAULT 0,
-  attrib_type_id smallint NOT NULL DEFAULT 0,
-  value text NOT NULL
+CREATE TABLE "translation_attrib" (
+  "translation_id" integer NOT NULL DEFAULT 0,
+  "attrib_type_id" smallint NOT NULL DEFAULT 0,
+  "value" text NOT NULL
 );
 
-CREATE UNIQUE INDEX translation_attribx ON translation_attrib (translation_id, attrib_type_id, value);
+CREATE UNIQUE INDEX "translation_attribx" ON "translation_attrib" ("translation_id", "attrib_type_id", "value");
 
 --
--- Table: unmapped_object
+-- Table: "unmapped_object"
 --
-CREATE TABLE unmapped_object (
-  unmapped_object_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  type enum NOT NULL,
-  analysis_id integer NOT NULL,
-  external_db_id integer,
-  identifier varchar(255) NOT NULL,
-  unmapped_reason_id integer NOT NULL,
-  query_score double precision,
-  target_score double precision,
-  ensembl_id integer DEFAULT 0,
-  ensembl_object_type enum DEFAULT 'RawContig',
-  parent varchar(255)
+CREATE TABLE "unmapped_object" (
+  "unmapped_object_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "type" enum NOT NULL,
+  "analysis_id" integer NOT NULL,
+  "external_db_id" integer,
+  "identifier" varchar(255) NOT NULL,
+  "unmapped_reason_id" integer NOT NULL,
+  "query_score" double precision,
+  "target_score" double precision,
+  "ensembl_id" integer DEFAULT 0,
+  "ensembl_object_type" enum DEFAULT 'RawContig',
+  "parent" varchar(255)
 );
 
-CREATE UNIQUE INDEX unique_unmapped_obj_idx ON unmapped_object (ensembl_id, ensembl_object_type, identifier, unmapped_reason_id, parent, external_db_id);
+CREATE UNIQUE INDEX "unique_unmapped_obj_idx" ON "unmapped_object" ("ensembl_id", "ensembl_object_type", "identifier", "unmapped_reason_id", "parent", "external_db_id");
 
 --
--- Table: unmapped_reason
+-- Table: "unmapped_reason"
 --
-CREATE TABLE unmapped_reason (
-  unmapped_reason_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  summary_description varchar(255),
-  full_description varchar(255)
+CREATE TABLE "unmapped_reason" (
+  "unmapped_reason_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "summary_description" varchar(255),
+  "full_description" varchar(255)
 );
 
 --
--- Table: xref
+-- Table: "xref"
 --
-CREATE TABLE xref (
-  xref_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  external_db_id integer NOT NULL,
-  dbprimary_acc varchar(512) NOT NULL,
-  display_label varchar(512) NOT NULL,
-  version varchar(10),
-  description text,
-  info_type enum NOT NULL DEFAULT 'NONE',
-  info_text varchar(255) NOT NULL DEFAULT ''
+CREATE TABLE "xref" (
+  "xref_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "external_db_id" integer NOT NULL,
+  "dbprimary_acc" varchar(512) NOT NULL,
+  "display_label" varchar(512) NOT NULL,
+  "version" varchar(10),
+  "description" text,
+  "info_type" enum NOT NULL DEFAULT 'NONE',
+  "info_text" varchar(255) NOT NULL DEFAULT ''
 );
 
-CREATE UNIQUE INDEX id_index ON xref (dbprimary_acc, external_db_id, info_type, info_text, version);
+CREATE UNIQUE INDEX "id_index" ON "xref" ("dbprimary_acc", "external_db_id", "info_type", "info_text", "version");
 
 COMMIT;
diff --git a/modules/t/test-genome-DBs/mapping/core/SQLite/table.sql b/modules/t/test-genome-DBs/mapping/core/SQLite/table.sql
index 79017ac666592990692c2abe369567bb219cd793..bc187c26d59040599cf00badff46b027d8b2c882 100644
--- a/modules/t/test-genome-DBs/mapping/core/SQLite/table.sql
+++ b/modules/t/test-genome-DBs/mapping/core/SQLite/table.sql
@@ -1,1002 +1,1002 @@
 -- 
 -- Created by SQL::Translator::Producer::SQLite
--- Created on Thu Jun 28 16:51:29 2018
+-- Created on Wed Sep 26 12:06:56 2018
 -- 
 
 BEGIN TRANSACTION;
 
 --
--- Table: alt_allele
+-- Table: "alt_allele"
 --
-CREATE TABLE alt_allele (
-  alt_allele_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  alt_allele_group_id integer NOT NULL,
-  gene_id integer NOT NULL
+CREATE TABLE "alt_allele" (
+  "alt_allele_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "alt_allele_group_id" integer NOT NULL,
+  "gene_id" integer NOT NULL
 );
 
-CREATE UNIQUE INDEX gene_idx ON alt_allele (gene_id);
+CREATE UNIQUE INDEX "gene_idx" ON "alt_allele" ("gene_id");
 
 --
--- Table: alt_allele_attrib
+-- Table: "alt_allele_attrib"
 --
-CREATE TABLE alt_allele_attrib (
-  alt_allele_id integer,
-  attrib enum
+CREATE TABLE "alt_allele_attrib" (
+  "alt_allele_id" integer,
+  "attrib" enum
 );
 
 --
--- Table: alt_allele_group
+-- Table: "alt_allele_group"
 --
-CREATE TABLE alt_allele_group (
-  alt_allele_group_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL
+CREATE TABLE "alt_allele_group" (
+  "alt_allele_group_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL
 );
 
 --
--- Table: analysis
+-- Table: "analysis"
 --
-CREATE TABLE analysis (
-  analysis_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  created datetime,
-  logic_name varchar(40) NOT NULL DEFAULT '',
-  db varchar(120),
-  db_version varchar(40),
-  db_file varchar(120),
-  program varchar(80),
-  program_version varchar(40),
-  program_file varchar(80),
-  parameters text,
-  module varchar(80),
-  module_version varchar(40),
-  gff_source varchar(40),
-  gff_feature varchar(40)
+CREATE TABLE "analysis" (
+  "analysis_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "created" datetime,
+  "logic_name" varchar(40) NOT NULL DEFAULT '',
+  "db" varchar(120),
+  "db_version" varchar(40),
+  "db_file" varchar(120),
+  "program" varchar(80),
+  "program_version" varchar(40),
+  "program_file" varchar(80),
+  "parameters" text,
+  "module" varchar(80),
+  "module_version" varchar(40),
+  "gff_source" varchar(40),
+  "gff_feature" varchar(40)
 );
 
-CREATE UNIQUE INDEX logic_name_idx ON analysis (logic_name);
+CREATE UNIQUE INDEX "logic_name_idx" ON "analysis" ("logic_name");
 
 --
--- Table: analysis_description
+-- Table: "analysis_description"
 --
-CREATE TABLE analysis_description (
-  analysis_id integer NOT NULL DEFAULT 0,
-  description text,
-  display_label varchar(255),
-  displayable tinyint NOT NULL DEFAULT 1,
-  web_data text
+CREATE TABLE "analysis_description" (
+  "analysis_id" integer NOT NULL DEFAULT 0,
+  "description" text,
+  "display_label" varchar(255),
+  "displayable" tinyint NOT NULL DEFAULT 1,
+  "web_data" text
 );
 
-CREATE UNIQUE INDEX analysis_idx ON analysis_description (analysis_id);
+CREATE UNIQUE INDEX "analysis_idx" ON "analysis_description" ("analysis_id");
 
 --
--- Table: assembly
+-- Table: "assembly"
 --
-CREATE TABLE assembly (
-  asm_seq_region_id integer NOT NULL DEFAULT 0,
-  cmp_seq_region_id integer NOT NULL DEFAULT 0,
-  asm_start integer NOT NULL DEFAULT 0,
-  asm_end integer NOT NULL DEFAULT 0,
-  cmp_start integer NOT NULL DEFAULT 0,
-  cmp_end integer NOT NULL DEFAULT 0,
-  ori tinyint NOT NULL DEFAULT 0
+CREATE TABLE "assembly" (
+  "asm_seq_region_id" integer NOT NULL DEFAULT 0,
+  "cmp_seq_region_id" integer NOT NULL DEFAULT 0,
+  "asm_start" integer NOT NULL DEFAULT 0,
+  "asm_end" integer NOT NULL DEFAULT 0,
+  "cmp_start" integer NOT NULL DEFAULT 0,
+  "cmp_end" integer NOT NULL DEFAULT 0,
+  "ori" tinyint NOT NULL DEFAULT 0
 );
 
-CREATE UNIQUE INDEX all_idx ON assembly (asm_seq_region_id, cmp_seq_region_id, asm_start, asm_end, cmp_start, cmp_end, ori);
+CREATE UNIQUE INDEX "all_idx" ON "assembly" ("asm_seq_region_id", "cmp_seq_region_id", "asm_start", "asm_end", "cmp_start", "cmp_end", "ori");
 
 --
--- Table: assembly_exception
+-- Table: "assembly_exception"
 --
-CREATE TABLE assembly_exception (
-  assembly_exception_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  exc_type enum NOT NULL DEFAULT 'HAP',
-  exc_seq_region_id integer NOT NULL DEFAULT 0,
-  exc_seq_region_start integer NOT NULL DEFAULT 0,
-  exc_seq_region_end integer NOT NULL DEFAULT 0,
-  ori integer NOT NULL DEFAULT 0
+CREATE TABLE "assembly_exception" (
+  "assembly_exception_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "exc_type" enum NOT NULL DEFAULT 'HAP',
+  "exc_seq_region_id" integer NOT NULL DEFAULT 0,
+  "exc_seq_region_start" integer NOT NULL DEFAULT 0,
+  "exc_seq_region_end" integer NOT NULL DEFAULT 0,
+  "ori" integer NOT NULL DEFAULT 0
 );
 
 --
--- Table: associated_group
+-- Table: "associated_group"
 --
-CREATE TABLE associated_group (
-  associated_group_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  description varchar(128)
+CREATE TABLE "associated_group" (
+  "associated_group_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "description" varchar(128)
 );
 
 --
--- Table: associated_xref
+-- Table: "associated_xref"
 --
-CREATE TABLE associated_xref (
-  associated_xref_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  object_xref_id integer NOT NULL DEFAULT 0,
-  xref_id integer NOT NULL DEFAULT 0,
-  source_xref_id integer,
-  condition_type varchar(128),
-  associated_group_id integer,
-  rank integer DEFAULT 0
+CREATE TABLE "associated_xref" (
+  "associated_xref_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "object_xref_id" integer NOT NULL DEFAULT 0,
+  "xref_id" integer NOT NULL DEFAULT 0,
+  "source_xref_id" integer,
+  "condition_type" varchar(128),
+  "associated_group_id" integer,
+  "rank" integer DEFAULT 0
 );
 
-CREATE UNIQUE INDEX object_associated_source_type_idx ON associated_xref (object_xref_id, xref_id, source_xref_id, condition_type, associated_group_id);
+CREATE UNIQUE INDEX "object_associated_source_type_idx" ON "associated_xref" ("object_xref_id", "xref_id", "source_xref_id", "condition_type", "associated_group_id");
 
 --
--- Table: attrib_type
+-- Table: "attrib_type"
 --
-CREATE TABLE attrib_type (
-  attrib_type_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  code varchar(20) NOT NULL DEFAULT '',
-  name varchar(255) NOT NULL DEFAULT '',
-  description text
+CREATE TABLE "attrib_type" (
+  "attrib_type_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "code" varchar(20) NOT NULL DEFAULT '',
+  "name" varchar(255) NOT NULL DEFAULT '',
+  "description" text
 );
 
-CREATE UNIQUE INDEX code_idx ON attrib_type (code);
+CREATE UNIQUE INDEX "code_idx" ON "attrib_type" ("code");
 
 --
--- Table: biotype
+-- Table: "biotype"
 --
-CREATE TABLE biotype (
-  biotype_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  name varchar(64) NOT NULL,
-  object_type enum NOT NULL DEFAULT 'gene',
-  db_type varchar NOT NULL DEFAULT 'core',
-  attrib_type_id integer,
-  description text,
-  biotype_group enum,
-  so_acc varchar(64)
+CREATE TABLE "biotype" (
+  "biotype_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "name" varchar(64) NOT NULL,
+  "object_type" enum NOT NULL DEFAULT 'gene',
+  "db_type" varchar NOT NULL DEFAULT 'core',
+  "attrib_type_id" integer,
+  "description" text,
+  "biotype_group" enum,
+  "so_acc" varchar(64)
 );
 
-CREATE UNIQUE INDEX name_type_idx ON biotype (name, object_type);
+CREATE UNIQUE INDEX "name_type_idx" ON "biotype" ("name", "object_type");
 
 --
--- Table: coord_system
+-- Table: "coord_system"
 --
-CREATE TABLE coord_system (
-  coord_system_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  species_id integer NOT NULL DEFAULT 1,
-  name varchar(40) NOT NULL,
-  version varchar(255),
-  rank integer NOT NULL,
-  attrib varchar
+CREATE TABLE "coord_system" (
+  "coord_system_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "species_id" integer NOT NULL DEFAULT 1,
+  "name" varchar(40) NOT NULL,
+  "version" varchar(255),
+  "rank" integer NOT NULL,
+  "attrib" varchar
 );
 
-CREATE UNIQUE INDEX name_idx ON coord_system (name, version, species_id);
+CREATE UNIQUE INDEX "name_idx" ON "coord_system" ("name", "version", "species_id");
 
-CREATE UNIQUE INDEX rank_idx ON coord_system (rank, species_id);
+CREATE UNIQUE INDEX "rank_idx" ON "coord_system" ("rank", "species_id");
 
 --
--- Table: data_file
+-- Table: "data_file"
 --
-CREATE TABLE data_file (
-  data_file_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  coord_system_id integer NOT NULL,
-  analysis_id smallint NOT NULL,
-  name varchar(100) NOT NULL,
-  version_lock tinyint NOT NULL DEFAULT 0,
-  absolute tinyint NOT NULL DEFAULT 0,
-  url text,
-  file_type enum
+CREATE TABLE "data_file" (
+  "data_file_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "coord_system_id" integer NOT NULL,
+  "analysis_id" smallint NOT NULL,
+  "name" varchar(100) NOT NULL,
+  "version_lock" tinyint NOT NULL DEFAULT 0,
+  "absolute" tinyint NOT NULL DEFAULT 0,
+  "url" text,
+  "file_type" enum
 );
 
-CREATE UNIQUE INDEX df_unq_idx ON data_file (coord_system_id, analysis_id, name, file_type);
+CREATE UNIQUE INDEX "df_unq_idx" ON "data_file" ("coord_system_id", "analysis_id", "name", "file_type");
 
 --
--- Table: density_feature
+-- Table: "density_feature"
 --
-CREATE TABLE density_feature (
-  density_feature_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  density_type_id integer NOT NULL DEFAULT 0,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  density_value float NOT NULL DEFAULT 0
+CREATE TABLE "density_feature" (
+  "density_feature_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "density_type_id" integer NOT NULL DEFAULT 0,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "density_value" float NOT NULL DEFAULT 0
 );
 
 --
--- Table: density_type
+-- Table: "density_type"
 --
-CREATE TABLE density_type (
-  density_type_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  analysis_id integer NOT NULL DEFAULT 0,
-  block_size integer NOT NULL DEFAULT 0,
-  region_features integer NOT NULL DEFAULT 0,
-  value_type enum NOT NULL DEFAULT 'sum'
+CREATE TABLE "density_type" (
+  "density_type_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "analysis_id" integer NOT NULL DEFAULT 0,
+  "block_size" integer NOT NULL DEFAULT 0,
+  "region_features" integer NOT NULL DEFAULT 0,
+  "value_type" enum NOT NULL DEFAULT 'sum'
 );
 
-CREATE UNIQUE INDEX analysis_id ON density_type (analysis_id, block_size, region_features);
+CREATE UNIQUE INDEX "analysis_id" ON "density_type" ("analysis_id", "block_size", "region_features");
 
 --
--- Table: dependent_xref
+-- Table: "dependent_xref"
 --
-CREATE TABLE dependent_xref (
-  object_xref_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  master_xref_id integer NOT NULL,
-  dependent_xref_id integer NOT NULL
+CREATE TABLE "dependent_xref" (
+  "object_xref_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "master_xref_id" integer NOT NULL,
+  "dependent_xref_id" integer NOT NULL
 );
 
 --
--- Table: ditag
+-- Table: "ditag"
 --
-CREATE TABLE ditag (
-  ditag_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  name varchar(30),
-  type varchar(30),
-  tag_count smallint DEFAULT 1,
-  sequence text
+CREATE TABLE "ditag" (
+  "ditag_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "name" varchar(30),
+  "type" varchar(30),
+  "tag_count" smallint DEFAULT 1,
+  "sequence" text
 );
 
 --
--- Table: ditag_feature
+-- Table: "ditag_feature"
 --
-CREATE TABLE ditag_feature (
-  ditag_feature_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  ditag_id integer NOT NULL DEFAULT 0,
-  ditag_pair_id integer NOT NULL DEFAULT 0,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  seq_region_strand tinyint NOT NULL DEFAULT 0,
-  analysis_id integer NOT NULL DEFAULT 0,
-  hit_start integer NOT NULL DEFAULT 0,
-  hit_end integer NOT NULL DEFAULT 0,
-  hit_strand tinyint NOT NULL DEFAULT 0,
-  cigar_line text,
-  ditag_side char(1) DEFAULT ''
+CREATE TABLE "ditag_feature" (
+  "ditag_feature_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "ditag_id" integer NOT NULL DEFAULT 0,
+  "ditag_pair_id" integer NOT NULL DEFAULT 0,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "seq_region_strand" tinyint NOT NULL DEFAULT 0,
+  "analysis_id" integer NOT NULL DEFAULT 0,
+  "hit_start" integer NOT NULL DEFAULT 0,
+  "hit_end" integer NOT NULL DEFAULT 0,
+  "hit_strand" tinyint NOT NULL DEFAULT 0,
+  "cigar_line" text,
+  "ditag_side" char(1) DEFAULT ''
 );
 
 --
--- Table: dna
+-- Table: "dna"
 --
-CREATE TABLE dna (
-  seq_region_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL DEFAULT 0,
-  sequence mediumtext NOT NULL
+CREATE TABLE "dna" (
+  "seq_region_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL DEFAULT 0,
+  "sequence" mediumtext NOT NULL
 );
 
 --
--- Table: dna_align_feature
+-- Table: "dna_align_feature"
 --
-CREATE TABLE dna_align_feature (
-  dna_align_feature_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  seq_region_strand tinyint NOT NULL DEFAULT 0,
-  hit_start integer NOT NULL DEFAULT 0,
-  hit_end integer NOT NULL DEFAULT 0,
-  hit_strand tinyint NOT NULL DEFAULT 0,
-  hit_name varchar(40) NOT NULL DEFAULT '',
-  analysis_id integer NOT NULL DEFAULT 0,
-  score double precision,
-  evalue double precision,
-  perc_ident float,
-  cigar_line text,
-  external_db_id smallint,
-  hcoverage double precision,
-  align_type enum DEFAULT 'ensembl'
+CREATE TABLE "dna_align_feature" (
+  "dna_align_feature_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "seq_region_strand" tinyint NOT NULL DEFAULT 0,
+  "hit_start" integer NOT NULL DEFAULT 0,
+  "hit_end" integer NOT NULL DEFAULT 0,
+  "hit_strand" tinyint NOT NULL DEFAULT 0,
+  "hit_name" varchar(40) NOT NULL DEFAULT '',
+  "analysis_id" integer NOT NULL DEFAULT 0,
+  "score" double precision,
+  "evalue" double precision,
+  "perc_ident" float,
+  "cigar_line" text,
+  "external_db_id" smallint,
+  "hcoverage" double precision,
+  "align_type" enum DEFAULT 'ensembl'
 );
 
 --
--- Table: dna_align_feature_attrib
+-- Table: "dna_align_feature_attrib"
 --
-CREATE TABLE dna_align_feature_attrib (
-  dna_align_feature_id integer NOT NULL,
-  attrib_type_id smallint NOT NULL,
-  value text NOT NULL
+CREATE TABLE "dna_align_feature_attrib" (
+  "dna_align_feature_id" integer NOT NULL,
+  "attrib_type_id" smallint NOT NULL,
+  "value" text NOT NULL
 );
 
-CREATE UNIQUE INDEX dna_align_feature_attribx ON dna_align_feature_attrib (dna_align_feature_id, attrib_type_id, value);
+CREATE UNIQUE INDEX "dna_align_feature_attribx" ON "dna_align_feature_attrib" ("dna_align_feature_id", "attrib_type_id", "value");
 
 --
--- Table: exon
+-- Table: "exon"
 --
-CREATE TABLE exon (
-  exon_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL,
-  seq_region_start integer NOT NULL,
-  seq_region_end integer NOT NULL,
-  seq_region_strand tinyint NOT NULL,
-  phase tinyint NOT NULL,
-  end_phase tinyint NOT NULL,
-  is_current tinyint NOT NULL DEFAULT 1,
-  is_constitutive tinyint NOT NULL DEFAULT 0,
-  stable_id varchar(128),
-  version smallint,
-  created_date datetime,
-  modified_date datetime
+CREATE TABLE "exon" (
+  "exon_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL,
+  "seq_region_start" integer NOT NULL,
+  "seq_region_end" integer NOT NULL,
+  "seq_region_strand" tinyint NOT NULL,
+  "phase" tinyint NOT NULL,
+  "end_phase" tinyint NOT NULL,
+  "is_current" tinyint NOT NULL DEFAULT 1,
+  "is_constitutive" tinyint NOT NULL DEFAULT 0,
+  "stable_id" varchar(128),
+  "version" smallint,
+  "created_date" datetime,
+  "modified_date" datetime
 );
 
 --
--- Table: exon_transcript
+-- Table: "exon_transcript"
 --
-CREATE TABLE exon_transcript (
-  exon_id integer NOT NULL DEFAULT 0,
-  transcript_id integer NOT NULL DEFAULT 0,
-  rank integer NOT NULL DEFAULT 0,
-  PRIMARY KEY (exon_id, transcript_id, rank)
+CREATE TABLE "exon_transcript" (
+  "exon_id" integer NOT NULL DEFAULT 0,
+  "transcript_id" integer NOT NULL DEFAULT 0,
+  "rank" integer NOT NULL DEFAULT 0,
+  PRIMARY KEY ("exon_id", "transcript_id", "rank")
 );
 
 --
--- Table: external_db
+-- Table: "external_db"
 --
-CREATE TABLE external_db (
-  external_db_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL DEFAULT 0,
-  db_name varchar(27) NOT NULL DEFAULT '',
-  db_release varchar(40) NOT NULL DEFAULT '',
-  status enum NOT NULL DEFAULT 'KNOWNXREF',
-  priority integer NOT NULL DEFAULT 0,
-  db_display_name varchar(255),
-  type enum,
-  secondary_db_name varchar(255),
-  secondary_db_table varchar(255),
-  description text
+CREATE TABLE "external_db" (
+  "external_db_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL DEFAULT 0,
+  "db_name" varchar(27) NOT NULL DEFAULT '',
+  "db_release" varchar(40) NOT NULL DEFAULT '',
+  "status" enum NOT NULL DEFAULT 'KNOWNXREF',
+  "priority" integer NOT NULL DEFAULT 0,
+  "db_display_name" varchar(255),
+  "type" enum,
+  "secondary_db_name" varchar(255),
+  "secondary_db_table" varchar(255),
+  "description" text
 );
 
-CREATE UNIQUE INDEX db_name_db_release_idx ON external_db (db_name, db_release);
+CREATE UNIQUE INDEX "db_name_db_release_idx" ON "external_db" ("db_name", "db_release");
 
 --
--- Table: external_synonym
+-- Table: "external_synonym"
 --
-CREATE TABLE external_synonym (
-  xref_id integer NOT NULL DEFAULT 0,
-  synonym varchar(40) NOT NULL DEFAULT '',
-  PRIMARY KEY (xref_id, synonym)
+CREATE TABLE "external_synonym" (
+  "xref_id" integer NOT NULL DEFAULT 0,
+  "synonym" varchar(40) NOT NULL DEFAULT '',
+  PRIMARY KEY ("xref_id", "synonym")
 );
 
 --
--- Table: gene
+-- Table: "gene"
 --
-CREATE TABLE gene (
-  gene_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  biotype varchar(40) NOT NULL,
-  analysis_id smallint NOT NULL,
-  seq_region_id integer NOT NULL,
-  seq_region_start integer NOT NULL,
-  seq_region_end integer NOT NULL,
-  seq_region_strand tinyint NOT NULL,
-  display_xref_id integer,
-  source varchar(40) NOT NULL,
-  description text,
-  is_current tinyint NOT NULL DEFAULT 1,
-  canonical_transcript_id integer NOT NULL,
-  stable_id varchar(128),
-  version smallint,
-  created_date datetime,
-  modified_date datetime
+CREATE TABLE "gene" (
+  "gene_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "biotype" varchar(40) NOT NULL,
+  "analysis_id" smallint NOT NULL,
+  "seq_region_id" integer NOT NULL,
+  "seq_region_start" integer NOT NULL,
+  "seq_region_end" integer NOT NULL,
+  "seq_region_strand" tinyint NOT NULL,
+  "display_xref_id" integer,
+  "source" varchar(40) NOT NULL,
+  "description" text,
+  "is_current" tinyint NOT NULL DEFAULT 1,
+  "canonical_transcript_id" integer NOT NULL,
+  "stable_id" varchar(128),
+  "version" smallint,
+  "created_date" datetime,
+  "modified_date" datetime
 );
 
 --
--- Table: gene_archive
+-- Table: "gene_archive"
 --
-CREATE TABLE gene_archive (
-  gene_stable_id varchar(128) NOT NULL DEFAULT '',
-  gene_version smallint NOT NULL DEFAULT 0,
-  transcript_stable_id varchar(128) NOT NULL DEFAULT '',
-  transcript_version smallint NOT NULL DEFAULT 0,
-  translation_stable_id varchar(128) NOT NULL DEFAULT '',
-  translation_version smallint NOT NULL DEFAULT 0,
-  peptide_archive_id integer NOT NULL DEFAULT 0,
-  mapping_session_id integer NOT NULL DEFAULT 0
+CREATE TABLE "gene_archive" (
+  "gene_stable_id" varchar(128) NOT NULL DEFAULT '',
+  "gene_version" smallint NOT NULL DEFAULT 0,
+  "transcript_stable_id" varchar(128) NOT NULL DEFAULT '',
+  "transcript_version" smallint NOT NULL DEFAULT 0,
+  "translation_stable_id" varchar(128) NOT NULL DEFAULT '',
+  "translation_version" smallint NOT NULL DEFAULT 0,
+  "peptide_archive_id" integer NOT NULL DEFAULT 0,
+  "mapping_session_id" integer NOT NULL DEFAULT 0
 );
 
 --
--- Table: gene_attrib
+-- Table: "gene_attrib"
 --
-CREATE TABLE gene_attrib (
-  gene_id integer NOT NULL DEFAULT 0,
-  attrib_type_id smallint NOT NULL DEFAULT 0,
-  value text NOT NULL
+CREATE TABLE "gene_attrib" (
+  "gene_id" integer NOT NULL DEFAULT 0,
+  "attrib_type_id" smallint NOT NULL DEFAULT 0,
+  "value" text NOT NULL
 );
 
-CREATE UNIQUE INDEX gene_attribx ON gene_attrib (gene_id, attrib_type_id, value);
+CREATE UNIQUE INDEX "gene_attribx" ON "gene_attrib" ("gene_id", "attrib_type_id", "value");
 
 --
--- Table: genome_statistics
+-- Table: "genome_statistics"
 --
-CREATE TABLE genome_statistics (
-  genome_statistics_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  statistic varchar(128) NOT NULL,
-  value bigint NOT NULL DEFAULT 0,
-  species_id integer DEFAULT 1,
-  attrib_type_id integer,
-  timestamp datetime
+CREATE TABLE "genome_statistics" (
+  "genome_statistics_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "statistic" varchar(128) NOT NULL,
+  "value" bigint NOT NULL DEFAULT 0,
+  "species_id" integer DEFAULT 1,
+  "attrib_type_id" integer,
+  "timestamp" datetime
 );
 
-CREATE UNIQUE INDEX stats_uniq ON genome_statistics (statistic, attrib_type_id, species_id);
+CREATE UNIQUE INDEX "stats_uniq" ON "genome_statistics" ("statistic", "attrib_type_id", "species_id");
 
 --
--- Table: identity_xref
+-- Table: "identity_xref"
 --
-CREATE TABLE identity_xref (
-  object_xref_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL DEFAULT 0,
-  xref_identity integer,
-  ensembl_identity integer,
-  xref_start integer,
-  xref_end integer,
-  ensembl_start integer,
-  ensembl_end integer,
-  cigar_line text,
-  score double precision,
-  evalue double precision
+CREATE TABLE "identity_xref" (
+  "object_xref_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL DEFAULT 0,
+  "xref_identity" integer,
+  "ensembl_identity" integer,
+  "xref_start" integer,
+  "xref_end" integer,
+  "ensembl_start" integer,
+  "ensembl_end" integer,
+  "cigar_line" text,
+  "score" double precision,
+  "evalue" double precision
 );
 
 --
--- Table: interpro
+-- Table: "interpro"
 --
-CREATE TABLE interpro (
-  interpro_ac varchar(40) NOT NULL DEFAULT '',
-  id varchar(40) NOT NULL
+CREATE TABLE "interpro" (
+  "interpro_ac" varchar(40) NOT NULL DEFAULT '',
+  "id" varchar(40) NOT NULL
 );
 
-CREATE UNIQUE INDEX accession_idx ON interpro (interpro_ac, id);
+CREATE UNIQUE INDEX "accession_idx" ON "interpro" ("interpro_ac", "id");
 
 --
--- Table: intron_supporting_evidence
+-- Table: "intron_supporting_evidence"
 --
-CREATE TABLE intron_supporting_evidence (
-  intron_supporting_evidence_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  analysis_id smallint NOT NULL,
-  seq_region_id integer NOT NULL,
-  seq_region_start integer NOT NULL,
-  seq_region_end integer NOT NULL,
-  seq_region_strand tinyint NOT NULL,
-  hit_name varchar(100) NOT NULL,
-  score decimal(10,3),
-  score_type enum DEFAULT 'NONE',
-  is_splice_canonical tinyint NOT NULL DEFAULT 0
+CREATE TABLE "intron_supporting_evidence" (
+  "intron_supporting_evidence_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "analysis_id" smallint NOT NULL,
+  "seq_region_id" integer NOT NULL,
+  "seq_region_start" integer NOT NULL,
+  "seq_region_end" integer NOT NULL,
+  "seq_region_strand" tinyint NOT NULL,
+  "hit_name" varchar(100) NOT NULL,
+  "score" decimal(10,3),
+  "score_type" enum DEFAULT 'NONE',
+  "is_splice_canonical" tinyint NOT NULL DEFAULT 0
 );
 
-CREATE UNIQUE INDEX analysis_id02 ON intron_supporting_evidence (analysis_id, seq_region_id, seq_region_start, seq_region_end, seq_region_strand, hit_name);
+CREATE UNIQUE INDEX "analysis_id02" ON "intron_supporting_evidence" ("analysis_id", "seq_region_id", "seq_region_start", "seq_region_end", "seq_region_strand", "hit_name");
 
 --
--- Table: karyotype
+-- Table: "karyotype"
 --
-CREATE TABLE karyotype (
-  karyotype_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  band varchar(40),
-  stain varchar(40)
+CREATE TABLE "karyotype" (
+  "karyotype_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "band" varchar(40),
+  "stain" varchar(40)
 );
 
 --
--- Table: map
+-- Table: "map"
 --
-CREATE TABLE map (
-  map_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  map_name varchar(30) NOT NULL DEFAULT ''
+CREATE TABLE "map" (
+  "map_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "map_name" varchar(30) NOT NULL DEFAULT ''
 );
 
 --
--- Table: mapping_session
+-- Table: "mapping_session"
 --
-CREATE TABLE mapping_session (
-  mapping_session_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  old_db_name varchar(80) NOT NULL DEFAULT '',
-  new_db_name varchar(80) NOT NULL DEFAULT '',
-  old_release varchar(5) NOT NULL DEFAULT '',
-  new_release varchar(5) NOT NULL DEFAULT '',
-  old_assembly varchar(20) NOT NULL DEFAULT '',
-  new_assembly varchar(20) NOT NULL DEFAULT '',
-  created datetime
+CREATE TABLE "mapping_session" (
+  "mapping_session_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "old_db_name" varchar(80) NOT NULL DEFAULT '',
+  "new_db_name" varchar(80) NOT NULL DEFAULT '',
+  "old_release" varchar(5) NOT NULL DEFAULT '',
+  "new_release" varchar(5) NOT NULL DEFAULT '',
+  "old_assembly" varchar(20) NOT NULL DEFAULT '',
+  "new_assembly" varchar(20) NOT NULL DEFAULT '',
+  "created" datetime
 );
 
 --
--- Table: mapping_set
+-- Table: "mapping_set"
 --
-CREATE TABLE mapping_set (
-  mapping_set_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  internal_schema_build varchar(20) NOT NULL,
-  external_schema_build varchar(20) NOT NULL
+CREATE TABLE "mapping_set" (
+  "mapping_set_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "internal_schema_build" varchar(20) NOT NULL,
+  "external_schema_build" varchar(20) NOT NULL
 );
 
-CREATE UNIQUE INDEX mapping_idx ON mapping_set (internal_schema_build, external_schema_build);
+CREATE UNIQUE INDEX "mapping_idx" ON "mapping_set" ("internal_schema_build", "external_schema_build");
 
 --
--- Table: marker
+-- Table: "marker"
 --
-CREATE TABLE marker (
-  marker_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  display_marker_synonym_id integer,
-  left_primer varchar(100) NOT NULL DEFAULT '',
-  right_primer varchar(100) NOT NULL DEFAULT '',
-  min_primer_dist integer NOT NULL DEFAULT 0,
-  max_primer_dist integer NOT NULL DEFAULT 0,
-  priority integer,
-  type enum
+CREATE TABLE "marker" (
+  "marker_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "display_marker_synonym_id" integer,
+  "left_primer" varchar(100) NOT NULL DEFAULT '',
+  "right_primer" varchar(100) NOT NULL DEFAULT '',
+  "min_primer_dist" integer NOT NULL DEFAULT 0,
+  "max_primer_dist" integer NOT NULL DEFAULT 0,
+  "priority" integer,
+  "type" enum
 );
 
 --
--- Table: marker_feature
+-- Table: "marker_feature"
 --
-CREATE TABLE marker_feature (
-  marker_feature_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  marker_id integer NOT NULL DEFAULT 0,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  analysis_id integer NOT NULL DEFAULT 0,
-  map_weight integer
+CREATE TABLE "marker_feature" (
+  "marker_feature_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "marker_id" integer NOT NULL DEFAULT 0,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "analysis_id" integer NOT NULL DEFAULT 0,
+  "map_weight" integer
 );
 
 --
--- Table: marker_map_location
+-- Table: "marker_map_location"
 --
-CREATE TABLE marker_map_location (
-  marker_id integer NOT NULL DEFAULT 0,
-  map_id integer NOT NULL DEFAULT 0,
-  chromosome_name varchar(15) NOT NULL DEFAULT '',
-  marker_synonym_id integer NOT NULL DEFAULT 0,
-  position varchar(15) NOT NULL DEFAULT '',
-  lod_score double precision,
-  PRIMARY KEY (marker_id, map_id)
+CREATE TABLE "marker_map_location" (
+  "marker_id" integer NOT NULL DEFAULT 0,
+  "map_id" integer NOT NULL DEFAULT 0,
+  "chromosome_name" varchar(15) NOT NULL DEFAULT '',
+  "marker_synonym_id" integer NOT NULL DEFAULT 0,
+  "position" varchar(15) NOT NULL DEFAULT '',
+  "lod_score" double precision,
+  PRIMARY KEY ("marker_id", "map_id")
 );
 
 --
--- Table: marker_synonym
+-- Table: "marker_synonym"
 --
-CREATE TABLE marker_synonym (
-  marker_synonym_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  marker_id integer NOT NULL DEFAULT 0,
-  source varchar(20),
-  name varchar(30)
+CREATE TABLE "marker_synonym" (
+  "marker_synonym_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "marker_id" integer NOT NULL DEFAULT 0,
+  "source" varchar(20),
+  "name" varchar(30)
 );
 
 --
--- Table: meta
+-- Table: "meta"
 --
-CREATE TABLE meta (
-  meta_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  species_id integer DEFAULT 1,
-  meta_key varchar(40) NOT NULL,
-  meta_value varchar(255) NOT NULL
+CREATE TABLE "meta" (
+  "meta_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "species_id" integer DEFAULT 1,
+  "meta_key" varchar(40) NOT NULL,
+  "meta_value" varchar(255) NOT NULL
 );
 
-CREATE UNIQUE INDEX species_key_value_idx ON meta (species_id, meta_key, meta_value);
+CREATE UNIQUE INDEX "species_key_value_idx" ON "meta" ("species_id", "meta_key", "meta_value");
 
 --
--- Table: meta_coord
+-- Table: "meta_coord"
 --
-CREATE TABLE meta_coord (
-  table_name varchar(40) NOT NULL DEFAULT '',
-  coord_system_id integer NOT NULL DEFAULT 0,
-  max_length integer
+CREATE TABLE "meta_coord" (
+  "table_name" varchar(40) NOT NULL DEFAULT '',
+  "coord_system_id" integer NOT NULL DEFAULT 0,
+  "max_length" integer
 );
 
-CREATE UNIQUE INDEX cs_table_name_idx ON meta_coord (coord_system_id, table_name);
+CREATE UNIQUE INDEX "cs_table_name_idx" ON "meta_coord" ("coord_system_id", "table_name");
 
 --
--- Table: misc_attrib
+-- Table: "misc_attrib"
 --
-CREATE TABLE misc_attrib (
-  misc_feature_id integer NOT NULL DEFAULT 0,
-  attrib_type_id smallint NOT NULL DEFAULT 0,
-  value text NOT NULL
+CREATE TABLE "misc_attrib" (
+  "misc_feature_id" integer NOT NULL DEFAULT 0,
+  "attrib_type_id" smallint NOT NULL DEFAULT 0,
+  "value" text NOT NULL
 );
 
-CREATE UNIQUE INDEX misc_attribx ON misc_attrib (misc_feature_id, attrib_type_id, value);
+CREATE UNIQUE INDEX "misc_attribx" ON "misc_attrib" ("misc_feature_id", "attrib_type_id", "value");
 
 --
--- Table: misc_feature
+-- Table: "misc_feature"
 --
-CREATE TABLE misc_feature (
-  misc_feature_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  seq_region_strand tinyint NOT NULL DEFAULT 0
+CREATE TABLE "misc_feature" (
+  "misc_feature_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "seq_region_strand" tinyint NOT NULL DEFAULT 0
 );
 
 --
--- Table: misc_feature_misc_set
+-- Table: "misc_feature_misc_set"
 --
-CREATE TABLE misc_feature_misc_set (
-  misc_feature_id integer NOT NULL DEFAULT 0,
-  misc_set_id smallint NOT NULL DEFAULT 0,
-  PRIMARY KEY (misc_feature_id, misc_set_id)
+CREATE TABLE "misc_feature_misc_set" (
+  "misc_feature_id" integer NOT NULL DEFAULT 0,
+  "misc_set_id" smallint NOT NULL DEFAULT 0,
+  PRIMARY KEY ("misc_feature_id", "misc_set_id")
 );
 
 --
--- Table: misc_set
+-- Table: "misc_set"
 --
-CREATE TABLE misc_set (
-  misc_set_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  code varchar(25) NOT NULL DEFAULT '',
-  name varchar(255) NOT NULL DEFAULT '',
-  description text NOT NULL,
-  max_length integer NOT NULL DEFAULT 0
+CREATE TABLE "misc_set" (
+  "misc_set_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "code" varchar(25) NOT NULL DEFAULT '',
+  "name" varchar(255) NOT NULL DEFAULT '',
+  "description" text NOT NULL,
+  "max_length" integer NOT NULL DEFAULT 0
 );
 
-CREATE UNIQUE INDEX code_idx02 ON misc_set (code);
+CREATE UNIQUE INDEX "code_idx02" ON "misc_set" ("code");
 
 --
--- Table: object_xref
+-- Table: "object_xref"
 --
-CREATE TABLE object_xref (
-  object_xref_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  ensembl_id integer NOT NULL DEFAULT 0,
-  ensembl_object_type enum NOT NULL DEFAULT 'RawContig',
-  xref_id integer NOT NULL,
-  linkage_annotation varchar(255),
-  analysis_id smallint
+CREATE TABLE "object_xref" (
+  "object_xref_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "ensembl_id" integer NOT NULL DEFAULT 0,
+  "ensembl_object_type" enum NOT NULL DEFAULT 'RawContig',
+  "xref_id" integer NOT NULL,
+  "linkage_annotation" varchar(255),
+  "analysis_id" smallint
 );
 
-CREATE UNIQUE INDEX xref_idx ON object_xref (xref_id, ensembl_object_type, ensembl_id, analysis_id);
+CREATE UNIQUE INDEX "xref_idx" ON "object_xref" ("xref_id", "ensembl_object_type", "ensembl_id", "analysis_id");
 
 --
--- Table: ontology_xref
+-- Table: "ontology_xref"
 --
-CREATE TABLE ontology_xref (
-  object_xref_id integer NOT NULL DEFAULT 0,
-  linkage_type varchar(3),
-  source_xref_id integer
+CREATE TABLE "ontology_xref" (
+  "object_xref_id" integer NOT NULL DEFAULT 0,
+  "linkage_type" varchar(3),
+  "source_xref_id" integer
 );
 
-CREATE UNIQUE INDEX object_source_type_idx ON ontology_xref (object_xref_id, source_xref_id, linkage_type);
+CREATE UNIQUE INDEX "object_source_type_idx" ON "ontology_xref" ("object_xref_id", "source_xref_id", "linkage_type");
 
 --
--- Table: operon
+-- Table: "operon"
 --
-CREATE TABLE operon (
-  operon_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL,
-  seq_region_start integer NOT NULL,
-  seq_region_end integer NOT NULL,
-  seq_region_strand tinyint NOT NULL,
-  display_label varchar(255),
-  analysis_id smallint NOT NULL,
-  stable_id varchar(128),
-  version smallint,
-  created_date datetime,
-  modified_date datetime
+CREATE TABLE "operon" (
+  "operon_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL,
+  "seq_region_start" integer NOT NULL,
+  "seq_region_end" integer NOT NULL,
+  "seq_region_strand" tinyint NOT NULL,
+  "display_label" varchar(255),
+  "analysis_id" smallint NOT NULL,
+  "stable_id" varchar(128),
+  "version" smallint,
+  "created_date" datetime,
+  "modified_date" datetime
 );
 
 --
--- Table: operon_transcript
+-- Table: "operon_transcript"
 --
-CREATE TABLE operon_transcript (
-  operon_transcript_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL,
-  seq_region_start integer NOT NULL,
-  seq_region_end integer NOT NULL,
-  seq_region_strand tinyint NOT NULL,
-  operon_id integer NOT NULL,
-  display_label varchar(255),
-  analysis_id smallint NOT NULL,
-  stable_id varchar(128),
-  version smallint,
-  created_date datetime,
-  modified_date datetime
+CREATE TABLE "operon_transcript" (
+  "operon_transcript_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL,
+  "seq_region_start" integer NOT NULL,
+  "seq_region_end" integer NOT NULL,
+  "seq_region_strand" tinyint NOT NULL,
+  "operon_id" integer NOT NULL,
+  "display_label" varchar(255),
+  "analysis_id" smallint NOT NULL,
+  "stable_id" varchar(128),
+  "version" smallint,
+  "created_date" datetime,
+  "modified_date" datetime
 );
 
 --
--- Table: operon_transcript_gene
+-- Table: "operon_transcript_gene"
 --
-CREATE TABLE operon_transcript_gene (
-  operon_transcript_id integer,
-  gene_id integer
+CREATE TABLE "operon_transcript_gene" (
+  "operon_transcript_id" integer,
+  "gene_id" integer
 );
 
 --
--- Table: peptide_archive
+-- Table: "peptide_archive"
 --
-CREATE TABLE peptide_archive (
-  peptide_archive_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  md5_checksum varchar(32),
-  peptide_seq mediumtext NOT NULL
+CREATE TABLE "peptide_archive" (
+  "peptide_archive_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "md5_checksum" varchar(32),
+  "peptide_seq" mediumtext NOT NULL
 );
 
 --
--- Table: prediction_exon
+-- Table: "prediction_exon"
 --
-CREATE TABLE prediction_exon (
-  prediction_exon_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  prediction_transcript_id integer NOT NULL DEFAULT 0,
-  exon_rank smallint NOT NULL DEFAULT 0,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  seq_region_strand tinyint NOT NULL DEFAULT 0,
-  start_phase tinyint NOT NULL DEFAULT 0,
-  score double precision,
-  p_value double precision
+CREATE TABLE "prediction_exon" (
+  "prediction_exon_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "prediction_transcript_id" integer NOT NULL DEFAULT 0,
+  "exon_rank" smallint NOT NULL DEFAULT 0,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "seq_region_strand" tinyint NOT NULL DEFAULT 0,
+  "start_phase" tinyint NOT NULL DEFAULT 0,
+  "score" double precision,
+  "p_value" double precision
 );
 
 --
--- Table: prediction_transcript
+-- Table: "prediction_transcript"
 --
-CREATE TABLE prediction_transcript (
-  prediction_transcript_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  seq_region_strand tinyint NOT NULL DEFAULT 0,
-  analysis_id integer,
-  display_label varchar(255)
+CREATE TABLE "prediction_transcript" (
+  "prediction_transcript_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "seq_region_strand" tinyint NOT NULL DEFAULT 0,
+  "analysis_id" integer,
+  "display_label" varchar(255)
 );
 
 --
--- Table: protein_align_feature
+-- Table: "protein_align_feature"
 --
-CREATE TABLE protein_align_feature (
-  protein_align_feature_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  seq_region_strand tinyint NOT NULL DEFAULT 1,
-  hit_start integer NOT NULL DEFAULT 0,
-  hit_end integer NOT NULL DEFAULT 0,
-  hit_name varchar(40) NOT NULL DEFAULT '',
-  analysis_id integer NOT NULL DEFAULT 0,
-  score double precision,
-  evalue double precision,
-  perc_ident float,
-  cigar_line text,
-  external_db_id smallint,
-  hcoverage double precision,
-  align_type enum DEFAULT 'ensembl'
+CREATE TABLE "protein_align_feature" (
+  "protein_align_feature_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "seq_region_strand" tinyint NOT NULL DEFAULT 1,
+  "hit_start" integer NOT NULL DEFAULT 0,
+  "hit_end" integer NOT NULL DEFAULT 0,
+  "hit_name" varchar(40) NOT NULL DEFAULT '',
+  "analysis_id" integer NOT NULL DEFAULT 0,
+  "score" double precision,
+  "evalue" double precision,
+  "perc_ident" float,
+  "cigar_line" text,
+  "external_db_id" smallint,
+  "hcoverage" double precision,
+  "align_type" enum DEFAULT 'ensembl'
 );
 
 --
--- Table: protein_feature
+-- Table: "protein_feature"
 --
-CREATE TABLE protein_feature (
-  protein_feature_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  translation_id integer NOT NULL DEFAULT 0,
-  seq_start integer NOT NULL DEFAULT 0,
-  seq_end integer NOT NULL DEFAULT 0,
-  hit_start integer NOT NULL DEFAULT 0,
-  hit_end integer NOT NULL DEFAULT 0,
-  hit_name varchar(40) NOT NULL,
-  analysis_id integer NOT NULL DEFAULT 0,
-  score double precision NOT NULL DEFAULT 0,
-  evalue double precision,
-  perc_ident float,
-  external_data text,
-  hit_description text,
-  cigar_line text,
-  align_type enum
+CREATE TABLE "protein_feature" (
+  "protein_feature_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "translation_id" integer NOT NULL DEFAULT 0,
+  "seq_start" integer NOT NULL DEFAULT 0,
+  "seq_end" integer NOT NULL DEFAULT 0,
+  "hit_start" integer NOT NULL DEFAULT 0,
+  "hit_end" integer NOT NULL DEFAULT 0,
+  "hit_name" varchar(40) NOT NULL,
+  "analysis_id" integer NOT NULL DEFAULT 0,
+  "score" double precision NOT NULL DEFAULT 0,
+  "evalue" double precision,
+  "perc_ident" float,
+  "external_data" text,
+  "hit_description" text,
+  "cigar_line" text,
+  "align_type" enum
 );
 
-CREATE UNIQUE INDEX aln_idx ON protein_feature (translation_id, hit_name, seq_start, seq_end, hit_start, hit_end, analysis_id);
+CREATE UNIQUE INDEX "aln_idx" ON "protein_feature" ("translation_id", "hit_name", "seq_start", "seq_end", "hit_start", "hit_end", "analysis_id");
 
 --
--- Table: repeat_consensus
+-- Table: "repeat_consensus"
 --
-CREATE TABLE repeat_consensus (
-  repeat_consensus_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  repeat_name varchar(255) NOT NULL DEFAULT '',
-  repeat_class varchar(100) NOT NULL DEFAULT '',
-  repeat_type varchar(40) NOT NULL DEFAULT '',
-  repeat_consensus text
+CREATE TABLE "repeat_consensus" (
+  "repeat_consensus_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "repeat_name" varchar(255) NOT NULL DEFAULT '',
+  "repeat_class" varchar(100) NOT NULL DEFAULT '',
+  "repeat_type" varchar(40) NOT NULL DEFAULT '',
+  "repeat_consensus" text
 );
 
 --
--- Table: repeat_feature
+-- Table: "repeat_feature"
 --
-CREATE TABLE repeat_feature (
-  repeat_feature_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  seq_region_strand tinyint NOT NULL DEFAULT 1,
-  repeat_start integer NOT NULL DEFAULT 0,
-  repeat_end integer NOT NULL DEFAULT 0,
-  repeat_consensus_id integer NOT NULL DEFAULT 0,
-  analysis_id integer NOT NULL DEFAULT 0,
-  score double precision
+CREATE TABLE "repeat_feature" (
+  "repeat_feature_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "seq_region_strand" tinyint NOT NULL DEFAULT 1,
+  "repeat_start" integer NOT NULL DEFAULT 0,
+  "repeat_end" integer NOT NULL DEFAULT 0,
+  "repeat_consensus_id" integer NOT NULL DEFAULT 0,
+  "analysis_id" integer NOT NULL DEFAULT 0,
+  "score" double precision
 );
 
 --
--- Table: seq_region
+-- Table: "seq_region"
 --
-CREATE TABLE seq_region (
-  seq_region_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  name varchar(255) NOT NULL,
-  coord_system_id integer NOT NULL DEFAULT 0,
-  length integer NOT NULL DEFAULT 0
+CREATE TABLE "seq_region" (
+  "seq_region_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "name" varchar(255) NOT NULL,
+  "coord_system_id" integer NOT NULL DEFAULT 0,
+  "length" integer NOT NULL DEFAULT 0
 );
 
-CREATE UNIQUE INDEX name_cs_idx ON seq_region (name, coord_system_id);
+CREATE UNIQUE INDEX "name_cs_idx" ON "seq_region" ("name", "coord_system_id");
 
 --
--- Table: seq_region_attrib
+-- Table: "seq_region_attrib"
 --
-CREATE TABLE seq_region_attrib (
-  seq_region_id integer NOT NULL DEFAULT 0,
-  attrib_type_id smallint NOT NULL DEFAULT 0,
-  value text NOT NULL
+CREATE TABLE "seq_region_attrib" (
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "attrib_type_id" smallint NOT NULL DEFAULT 0,
+  "value" text NOT NULL
 );
 
-CREATE UNIQUE INDEX region_attribx ON seq_region_attrib (seq_region_id, attrib_type_id, value);
+CREATE UNIQUE INDEX "region_attribx" ON "seq_region_attrib" ("seq_region_id", "attrib_type_id", "value");
 
 --
--- Table: seq_region_mapping
+-- Table: "seq_region_mapping"
 --
-CREATE TABLE seq_region_mapping (
-  external_seq_region_id integer NOT NULL,
-  internal_seq_region_id integer NOT NULL,
-  mapping_set_id integer NOT NULL
+CREATE TABLE "seq_region_mapping" (
+  "external_seq_region_id" integer NOT NULL,
+  "internal_seq_region_id" integer NOT NULL,
+  "mapping_set_id" integer NOT NULL
 );
 
 --
--- Table: seq_region_synonym
+-- Table: "seq_region_synonym"
 --
-CREATE TABLE seq_region_synonym (
-  seq_region_synonym_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL,
-  synonym varchar(250) NOT NULL,
-  external_db_id smallint
+CREATE TABLE "seq_region_synonym" (
+  "seq_region_synonym_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL,
+  "synonym" varchar(250) NOT NULL,
+  "external_db_id" smallint
 );
 
-CREATE UNIQUE INDEX syn_idx ON seq_region_synonym (synonym, seq_region_id);
+CREATE UNIQUE INDEX "syn_idx" ON "seq_region_synonym" ("synonym", "seq_region_id");
 
 --
--- Table: simple_feature
+-- Table: "simple_feature"
 --
-CREATE TABLE simple_feature (
-  simple_feature_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  seq_region_strand tinyint NOT NULL DEFAULT 0,
-  display_label varchar(40) NOT NULL DEFAULT '',
-  analysis_id integer NOT NULL DEFAULT 0,
-  score double precision
+CREATE TABLE "simple_feature" (
+  "simple_feature_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "seq_region_strand" tinyint NOT NULL DEFAULT 0,
+  "display_label" varchar(40) NOT NULL DEFAULT '',
+  "analysis_id" integer NOT NULL DEFAULT 0,
+  "score" double precision
 );
 
 --
--- Table: stable_id_event
+-- Table: "stable_id_event"
 --
-CREATE TABLE stable_id_event (
-  old_stable_id varchar(128),
-  old_version smallint,
-  new_stable_id varchar(128),
-  new_version smallint,
-  mapping_session_id integer NOT NULL DEFAULT 0,
-  type enum NOT NULL DEFAULT 'gene',
-  score float NOT NULL DEFAULT 0
+CREATE TABLE "stable_id_event" (
+  "old_stable_id" varchar(128),
+  "old_version" smallint,
+  "new_stable_id" varchar(128),
+  "new_version" smallint,
+  "mapping_session_id" integer NOT NULL DEFAULT 0,
+  "type" enum NOT NULL DEFAULT 'gene',
+  "score" float NOT NULL DEFAULT 0
 );
 
-CREATE UNIQUE INDEX uni_idx ON stable_id_event (mapping_session_id, old_stable_id, old_version, new_stable_id, new_version, type);
+CREATE UNIQUE INDEX "uni_idx" ON "stable_id_event" ("mapping_session_id", "old_stable_id", "old_version", "new_stable_id", "new_version", "type");
 
 --
--- Table: supporting_feature
+-- Table: "supporting_feature"
 --
-CREATE TABLE supporting_feature (
-  exon_id integer NOT NULL DEFAULT 0,
-  feature_type enum,
-  feature_id integer NOT NULL DEFAULT 0
+CREATE TABLE "supporting_feature" (
+  "exon_id" integer NOT NULL DEFAULT 0,
+  "feature_type" enum,
+  "feature_id" integer NOT NULL DEFAULT 0
 );
 
-CREATE UNIQUE INDEX all_idx02 ON supporting_feature (exon_id, feature_type, feature_id);
+CREATE UNIQUE INDEX "all_idx02" ON "supporting_feature" ("exon_id", "feature_type", "feature_id");
 
 --
--- Table: transcript
+-- Table: "transcript"
 --
-CREATE TABLE transcript (
-  transcript_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  gene_id integer,
-  analysis_id smallint NOT NULL,
-  seq_region_id integer NOT NULL,
-  seq_region_start integer NOT NULL,
-  seq_region_end integer NOT NULL,
-  seq_region_strand tinyint NOT NULL,
-  display_xref_id integer,
-  source varchar(40) NOT NULL DEFAULT 'ensembl',
-  biotype varchar(40) NOT NULL,
-  description text,
-  is_current tinyint NOT NULL DEFAULT 1,
-  canonical_translation_id integer,
-  stable_id varchar(128),
-  version smallint,
-  created_date datetime,
-  modified_date datetime
+CREATE TABLE "transcript" (
+  "transcript_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "gene_id" integer,
+  "analysis_id" smallint NOT NULL,
+  "seq_region_id" integer NOT NULL,
+  "seq_region_start" integer NOT NULL,
+  "seq_region_end" integer NOT NULL,
+  "seq_region_strand" tinyint NOT NULL,
+  "display_xref_id" integer,
+  "source" varchar(40) NOT NULL DEFAULT 'ensembl',
+  "biotype" varchar(40) NOT NULL,
+  "description" text,
+  "is_current" tinyint NOT NULL DEFAULT 1,
+  "canonical_translation_id" integer,
+  "stable_id" varchar(128),
+  "version" smallint,
+  "created_date" datetime,
+  "modified_date" datetime
 );
 
-CREATE UNIQUE INDEX canonical_translation_idx ON transcript (canonical_translation_id);
+CREATE UNIQUE INDEX "canonical_translation_idx" ON "transcript" ("canonical_translation_id");
 
 --
--- Table: transcript_attrib
+-- Table: "transcript_attrib"
 --
-CREATE TABLE transcript_attrib (
-  transcript_id integer NOT NULL DEFAULT 0,
-  attrib_type_id smallint NOT NULL DEFAULT 0,
-  value text NOT NULL
+CREATE TABLE "transcript_attrib" (
+  "transcript_id" integer NOT NULL DEFAULT 0,
+  "attrib_type_id" smallint NOT NULL DEFAULT 0,
+  "value" text NOT NULL
 );
 
-CREATE UNIQUE INDEX transcript_attribx ON transcript_attrib (transcript_id, attrib_type_id, value);
+CREATE UNIQUE INDEX "transcript_attribx" ON "transcript_attrib" ("transcript_id", "attrib_type_id", "value");
 
 --
--- Table: transcript_intron_supporting_evidence
+-- Table: "transcript_intron_supporting_evidence"
 --
-CREATE TABLE transcript_intron_supporting_evidence (
-  transcript_id integer NOT NULL,
-  intron_supporting_evidence_id integer NOT NULL,
-  previous_exon_id integer NOT NULL,
-  next_exon_id integer NOT NULL,
-  PRIMARY KEY (intron_supporting_evidence_id, transcript_id)
+CREATE TABLE "transcript_intron_supporting_evidence" (
+  "transcript_id" integer NOT NULL,
+  "intron_supporting_evidence_id" integer NOT NULL,
+  "previous_exon_id" integer NOT NULL,
+  "next_exon_id" integer NOT NULL,
+  PRIMARY KEY ("intron_supporting_evidence_id", "transcript_id")
 );
 
 --
--- Table: transcript_supporting_feature
+-- Table: "transcript_supporting_feature"
 --
-CREATE TABLE transcript_supporting_feature (
-  transcript_id integer NOT NULL DEFAULT 0,
-  feature_type enum,
-  feature_id integer NOT NULL DEFAULT 0
+CREATE TABLE "transcript_supporting_feature" (
+  "transcript_id" integer NOT NULL DEFAULT 0,
+  "feature_type" enum,
+  "feature_id" integer NOT NULL DEFAULT 0
 );
 
-CREATE UNIQUE INDEX all_idx03 ON transcript_supporting_feature (transcript_id, feature_type, feature_id);
+CREATE UNIQUE INDEX "all_idx03" ON "transcript_supporting_feature" ("transcript_id", "feature_type", "feature_id");
 
 --
--- Table: translation
+-- Table: "translation"
 --
-CREATE TABLE translation (
-  translation_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  transcript_id integer NOT NULL,
-  seq_start integer NOT NULL,
-  start_exon_id integer NOT NULL,
-  seq_end integer NOT NULL,
-  end_exon_id integer NOT NULL,
-  stable_id varchar(128),
-  version smallint,
-  created_date datetime,
-  modified_date datetime
+CREATE TABLE "translation" (
+  "translation_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "transcript_id" integer NOT NULL,
+  "seq_start" integer NOT NULL,
+  "start_exon_id" integer NOT NULL,
+  "seq_end" integer NOT NULL,
+  "end_exon_id" integer NOT NULL,
+  "stable_id" varchar(128),
+  "version" smallint,
+  "created_date" datetime,
+  "modified_date" datetime
 );
 
 --
--- Table: translation_attrib
+-- Table: "translation_attrib"
 --
-CREATE TABLE translation_attrib (
-  translation_id integer NOT NULL DEFAULT 0,
-  attrib_type_id smallint NOT NULL DEFAULT 0,
-  value text NOT NULL
+CREATE TABLE "translation_attrib" (
+  "translation_id" integer NOT NULL DEFAULT 0,
+  "attrib_type_id" smallint NOT NULL DEFAULT 0,
+  "value" text NOT NULL
 );
 
-CREATE UNIQUE INDEX translation_attribx ON translation_attrib (translation_id, attrib_type_id, value);
+CREATE UNIQUE INDEX "translation_attribx" ON "translation_attrib" ("translation_id", "attrib_type_id", "value");
 
 --
--- Table: unmapped_object
+-- Table: "unmapped_object"
 --
-CREATE TABLE unmapped_object (
-  unmapped_object_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  type enum NOT NULL,
-  analysis_id integer NOT NULL,
-  external_db_id integer,
-  identifier varchar(255) NOT NULL,
-  unmapped_reason_id integer NOT NULL,
-  query_score double precision,
-  target_score double precision,
-  ensembl_id integer DEFAULT 0,
-  ensembl_object_type enum DEFAULT 'RawContig',
-  parent varchar(255)
+CREATE TABLE "unmapped_object" (
+  "unmapped_object_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "type" enum NOT NULL,
+  "analysis_id" integer NOT NULL,
+  "external_db_id" integer,
+  "identifier" varchar(255) NOT NULL,
+  "unmapped_reason_id" integer NOT NULL,
+  "query_score" double precision,
+  "target_score" double precision,
+  "ensembl_id" integer DEFAULT 0,
+  "ensembl_object_type" enum DEFAULT 'RawContig',
+  "parent" varchar(255)
 );
 
-CREATE UNIQUE INDEX unique_unmapped_obj_idx ON unmapped_object (ensembl_id, ensembl_object_type, identifier, unmapped_reason_id, parent, external_db_id);
+CREATE UNIQUE INDEX "unique_unmapped_obj_idx" ON "unmapped_object" ("ensembl_id", "ensembl_object_type", "identifier", "unmapped_reason_id", "parent", "external_db_id");
 
 --
--- Table: unmapped_reason
+-- Table: "unmapped_reason"
 --
-CREATE TABLE unmapped_reason (
-  unmapped_reason_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  summary_description varchar(255),
-  full_description varchar(255)
+CREATE TABLE "unmapped_reason" (
+  "unmapped_reason_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "summary_description" varchar(255),
+  "full_description" varchar(255)
 );
 
 --
--- Table: xref
+-- Table: "xref"
 --
-CREATE TABLE xref (
-  xref_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  external_db_id integer NOT NULL,
-  dbprimary_acc varchar(512) NOT NULL,
-  display_label varchar(512) NOT NULL,
-  version varchar(10),
-  description text,
-  info_type enum NOT NULL DEFAULT 'NONE',
-  info_text varchar(255) NOT NULL DEFAULT ''
+CREATE TABLE "xref" (
+  "xref_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "external_db_id" integer NOT NULL,
+  "dbprimary_acc" varchar(512) NOT NULL,
+  "display_label" varchar(512) NOT NULL,
+  "version" varchar(10),
+  "description" text,
+  "info_type" enum NOT NULL DEFAULT 'NONE',
+  "info_text" varchar(255) NOT NULL DEFAULT ''
 );
 
-CREATE UNIQUE INDEX id_index ON xref (dbprimary_acc, external_db_id, info_type, info_text, version);
+CREATE UNIQUE INDEX "id_index" ON "xref" ("dbprimary_acc", "external_db_id", "info_type", "info_text", "version");
 
 COMMIT;
diff --git a/modules/t/test-genome-DBs/multi/compara/SQLite/table.sql b/modules/t/test-genome-DBs/multi/compara/SQLite/table.sql
index d62e9b75070d592c21d8456d4c4f35a7c1cd7ba2..38926c3f5ce1a408a84518b4271e1abcd2e9f5ec 100644
--- a/modules/t/test-genome-DBs/multi/compara/SQLite/table.sql
+++ b/modules/t/test-genome-DBs/multi/compara/SQLite/table.sql
@@ -1,758 +1,758 @@
 -- 
 -- Created by SQL::Translator::Producer::SQLite
--- Created on Tue Jul  3 16:05:34 2018
+-- Created on Wed Sep 26 12:07:04 2018
 -- 
 
 BEGIN TRANSACTION;
 
 --
--- Table: CAFE_gene_family
+-- Table: "CAFE_gene_family"
 --
-CREATE TABLE CAFE_gene_family (
-  cafe_gene_family_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  root_id integer NOT NULL,
-  lca_id integer NOT NULL,
-  gene_tree_root_id integer NOT NULL,
-  pvalue_avg double precision(5,4),
-  lambdas varchar(100)
+CREATE TABLE "CAFE_gene_family" (
+  "cafe_gene_family_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "root_id" integer NOT NULL,
+  "lca_id" integer NOT NULL,
+  "gene_tree_root_id" integer NOT NULL,
+  "pvalue_avg" double precision(5,4),
+  "lambdas" varchar(100)
 );
 
 --
--- Table: CAFE_species_gene
+-- Table: "CAFE_species_gene"
 --
-CREATE TABLE CAFE_species_gene (
-  cafe_gene_family_id integer NOT NULL,
-  node_id integer NOT NULL,
-  n_members integer NOT NULL,
-  pvalue double precision(5,4),
-  PRIMARY KEY (cafe_gene_family_id, node_id)
+CREATE TABLE "CAFE_species_gene" (
+  "cafe_gene_family_id" integer NOT NULL,
+  "node_id" integer NOT NULL,
+  "n_members" integer NOT NULL,
+  "pvalue" double precision(5,4),
+  PRIMARY KEY ("cafe_gene_family_id", "node_id")
 );
 
 --
--- Table: conservation_score
+-- Table: "conservation_score"
 --
-CREATE TABLE conservation_score (
-  genomic_align_block_id bigint NOT NULL,
-  window_size smallint NOT NULL,
-  position integer NOT NULL,
-  expected_score blob,
-  diff_score blob
+CREATE TABLE "conservation_score" (
+  "genomic_align_block_id" bigint NOT NULL,
+  "window_size" smallint NOT NULL,
+  "position" integer NOT NULL,
+  "expected_score" blob,
+  "diff_score" blob
 );
 
 --
--- Table: constrained_element
+-- Table: "constrained_element"
 --
-CREATE TABLE constrained_element (
-  constrained_element_id bigint NOT NULL,
-  dnafrag_id bigint NOT NULL,
-  dnafrag_start integer NOT NULL,
-  dnafrag_end integer NOT NULL,
-  dnafrag_strand integer NOT NULL,
-  method_link_species_set_id integer NOT NULL,
-  p_value double precision NOT NULL DEFAULT 0,
-  score double precision NOT NULL DEFAULT 0
+CREATE TABLE "constrained_element" (
+  "constrained_element_id" bigint NOT NULL,
+  "dnafrag_id" bigint NOT NULL,
+  "dnafrag_start" integer NOT NULL,
+  "dnafrag_end" integer NOT NULL,
+  "dnafrag_strand" integer NOT NULL,
+  "method_link_species_set_id" integer NOT NULL,
+  "p_value" double precision NOT NULL DEFAULT 0,
+  "score" double precision NOT NULL DEFAULT 0
 );
 
 --
--- Table: dnafrag
+-- Table: "dnafrag"
 --
-CREATE TABLE dnafrag (
-  dnafrag_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  length integer NOT NULL DEFAULT 0,
-  name varchar(255) NOT NULL DEFAULT '',
-  genome_db_id integer NOT NULL,
-  coord_system_name varchar(40) NOT NULL DEFAULT '',
-  cellular_component enum NOT NULL DEFAULT 'NUC',
-  is_reference tinyint NOT NULL DEFAULT 1,
-  codon_table_id tinyint NOT NULL DEFAULT 1
+CREATE TABLE "dnafrag" (
+  "dnafrag_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "length" integer NOT NULL DEFAULT 0,
+  "name" varchar(255) NOT NULL DEFAULT '',
+  "genome_db_id" integer NOT NULL,
+  "coord_system_name" varchar(40) NOT NULL DEFAULT '',
+  "cellular_component" enum NOT NULL DEFAULT 'NUC',
+  "is_reference" tinyint NOT NULL DEFAULT 1,
+  "codon_table_id" tinyint NOT NULL DEFAULT 1
 );
 
-CREATE UNIQUE INDEX name ON dnafrag (genome_db_id, name);
+CREATE UNIQUE INDEX "name" ON "dnafrag" ("genome_db_id", "name");
 
 --
--- Table: dnafrag_region
+-- Table: "dnafrag_region"
 --
-CREATE TABLE dnafrag_region (
-  synteny_region_id integer NOT NULL DEFAULT 0,
-  dnafrag_id bigint NOT NULL DEFAULT 0,
-  dnafrag_start integer NOT NULL DEFAULT 0,
-  dnafrag_end integer NOT NULL DEFAULT 0,
-  dnafrag_strand tinyint NOT NULL DEFAULT 0
+CREATE TABLE "dnafrag_region" (
+  "synteny_region_id" integer NOT NULL DEFAULT 0,
+  "dnafrag_id" bigint NOT NULL DEFAULT 0,
+  "dnafrag_start" integer NOT NULL DEFAULT 0,
+  "dnafrag_end" integer NOT NULL DEFAULT 0,
+  "dnafrag_strand" tinyint NOT NULL DEFAULT 0
 );
 
 --
--- Table: exon_boundaries
+-- Table: "exon_boundaries"
 --
-CREATE TABLE exon_boundaries (
-  gene_member_id integer NOT NULL,
-  seq_member_id integer NOT NULL,
-  dnafrag_start integer NOT NULL,
-  dnafrag_end integer NOT NULL,
-  sequence_length integer NOT NULL,
-  left_over tinyint NOT NULL DEFAULT 0
+CREATE TABLE "exon_boundaries" (
+  "gene_member_id" integer NOT NULL,
+  "seq_member_id" integer NOT NULL,
+  "dnafrag_start" integer NOT NULL,
+  "dnafrag_end" integer NOT NULL,
+  "sequence_length" integer NOT NULL,
+  "left_over" tinyint NOT NULL DEFAULT 0
 );
 
 --
--- Table: external_db
+-- Table: "external_db"
 --
-CREATE TABLE external_db (
-  external_db_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  db_name varchar(100) NOT NULL,
-  db_release varchar(255),
-  status enum NOT NULL,
-  priority integer NOT NULL,
-  db_display_name varchar(255),
-  type enum,
-  secondary_db_name varchar(255),
-  secondary_db_table varchar(255),
-  description text
+CREATE TABLE "external_db" (
+  "external_db_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "db_name" varchar(100) NOT NULL,
+  "db_release" varchar(255),
+  "status" enum NOT NULL,
+  "priority" integer NOT NULL,
+  "db_display_name" varchar(255),
+  "type" enum,
+  "secondary_db_name" varchar(255),
+  "secondary_db_table" varchar(255),
+  "description" text
 );
 
-CREATE UNIQUE INDEX db_name_db_release_idx ON external_db (db_name, db_release);
+CREATE UNIQUE INDEX "db_name_db_release_idx" ON "external_db" ("db_name", "db_release");
 
 --
--- Table: family
+-- Table: "family"
 --
-CREATE TABLE family (
-  family_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  stable_id varchar(40) NOT NULL,
-  version integer NOT NULL,
-  method_link_species_set_id integer NOT NULL,
-  description text,
-  description_score double precision
+CREATE TABLE "family" (
+  "family_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "stable_id" varchar(40) NOT NULL,
+  "version" integer NOT NULL,
+  "method_link_species_set_id" integer NOT NULL,
+  "description" text,
+  "description_score" double precision
 );
 
-CREATE UNIQUE INDEX stable_id ON family (stable_id);
+CREATE UNIQUE INDEX "stable_id" ON "family" ("stable_id");
 
 --
--- Table: family_member
+-- Table: "family_member"
 --
-CREATE TABLE family_member (
-  family_id integer NOT NULL,
-  seq_member_id integer NOT NULL,
-  cigar_line mediumtext,
-  PRIMARY KEY (family_id, seq_member_id)
+CREATE TABLE "family_member" (
+  "family_id" integer NOT NULL,
+  "seq_member_id" integer NOT NULL,
+  "cigar_line" mediumtext,
+  PRIMARY KEY ("family_id", "seq_member_id")
 );
 
 --
--- Table: gene_align
+-- Table: "gene_align"
 --
-CREATE TABLE gene_align (
-  gene_align_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_type varchar(40),
-  aln_method varchar(40) NOT NULL DEFAULT '',
-  aln_length integer NOT NULL DEFAULT 0
+CREATE TABLE "gene_align" (
+  "gene_align_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_type" varchar(40),
+  "aln_method" varchar(40) NOT NULL DEFAULT '',
+  "aln_length" integer NOT NULL DEFAULT 0
 );
 
 --
--- Table: gene_align_member
+-- Table: "gene_align_member"
 --
-CREATE TABLE gene_align_member (
-  gene_align_id integer NOT NULL,
-  seq_member_id integer NOT NULL,
-  cigar_line mediumtext,
-  PRIMARY KEY (gene_align_id, seq_member_id)
+CREATE TABLE "gene_align_member" (
+  "gene_align_id" integer NOT NULL,
+  "seq_member_id" integer NOT NULL,
+  "cigar_line" mediumtext,
+  PRIMARY KEY ("gene_align_id", "seq_member_id")
 );
 
 --
--- Table: gene_member
+-- Table: "gene_member"
 --
-CREATE TABLE gene_member (
-  gene_member_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  stable_id varchar(128) NOT NULL,
-  version integer DEFAULT 0,
-  source_name enum NOT NULL,
-  taxon_id integer NOT NULL,
-  genome_db_id integer,
-  biotype_group enum NOT NULL DEFAULT 'coding',
-  canonical_member_id integer,
-  description text,
-  dnafrag_id bigint,
-  dnafrag_start integer,
-  dnafrag_end integer,
-  dnafrag_strand tinyint,
-  display_label varchar(128)
+CREATE TABLE "gene_member" (
+  "gene_member_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "stable_id" varchar(128) NOT NULL,
+  "version" integer DEFAULT 0,
+  "source_name" enum NOT NULL,
+  "taxon_id" integer NOT NULL,
+  "genome_db_id" integer,
+  "biotype_group" enum NOT NULL DEFAULT 'coding',
+  "canonical_member_id" integer,
+  "description" text,
+  "dnafrag_id" bigint,
+  "dnafrag_start" integer,
+  "dnafrag_end" integer,
+  "dnafrag_strand" tinyint,
+  "display_label" varchar(128)
 );
 
-CREATE UNIQUE INDEX stable_id02 ON gene_member (stable_id);
+CREATE UNIQUE INDEX "stable_id02" ON "gene_member" ("stable_id");
 
 --
--- Table: gene_member_hom_stats
+-- Table: "gene_member_hom_stats"
 --
-CREATE TABLE gene_member_hom_stats (
-  gene_member_id integer NOT NULL,
-  collection varchar(40) NOT NULL,
-  families integer NOT NULL DEFAULT 0,
-  gene_trees tinyint NOT NULL DEFAULT 0,
-  gene_gain_loss_trees tinyint NOT NULL DEFAULT 0,
-  orthologues integer NOT NULL DEFAULT 0,
-  paralogues integer NOT NULL DEFAULT 0,
-  homoeologues integer NOT NULL DEFAULT 0,
-  PRIMARY KEY (gene_member_id, collection)
+CREATE TABLE "gene_member_hom_stats" (
+  "gene_member_id" integer NOT NULL,
+  "collection" varchar(40) NOT NULL,
+  "families" integer NOT NULL DEFAULT 0,
+  "gene_trees" tinyint NOT NULL DEFAULT 0,
+  "gene_gain_loss_trees" tinyint NOT NULL DEFAULT 0,
+  "orthologues" integer NOT NULL DEFAULT 0,
+  "paralogues" integer NOT NULL DEFAULT 0,
+  "homoeologues" integer NOT NULL DEFAULT 0,
+  PRIMARY KEY ("gene_member_id", "collection")
 );
 
 --
--- Table: gene_member_qc
+-- Table: "gene_member_qc"
 --
-CREATE TABLE gene_member_qc (
-  gene_member_stable_id varchar(128) NOT NULL,
-  genome_db_id integer NOT NULL,
-  seq_member_id integer,
-  n_species integer,
-  n_orth integer,
-  avg_cov float,
-  status varchar(50) NOT NULL
+CREATE TABLE "gene_member_qc" (
+  "gene_member_stable_id" varchar(128) NOT NULL,
+  "genome_db_id" integer NOT NULL,
+  "seq_member_id" integer,
+  "n_species" integer,
+  "n_orth" integer,
+  "avg_cov" float,
+  "status" varchar(50) NOT NULL
 );
 
 --
--- Table: gene_tree_node
+-- Table: "gene_tree_node"
 --
-CREATE TABLE gene_tree_node (
-  node_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  parent_id integer,
-  root_id integer,
-  left_index integer NOT NULL DEFAULT 0,
-  right_index integer NOT NULL DEFAULT 0,
-  distance_to_parent double precision NOT NULL DEFAULT 1,
-  seq_member_id integer
+CREATE TABLE "gene_tree_node" (
+  "node_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "parent_id" integer,
+  "root_id" integer,
+  "left_index" integer NOT NULL DEFAULT 0,
+  "right_index" integer NOT NULL DEFAULT 0,
+  "distance_to_parent" double precision NOT NULL DEFAULT 1,
+  "seq_member_id" integer
 );
 
 --
--- Table: gene_tree_node_attr
+-- Table: "gene_tree_node_attr"
 --
-CREATE TABLE gene_tree_node_attr (
-  node_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  node_type enum,
-  species_tree_node_id integer,
-  bootstrap tinyint,
-  duplication_confidence_score double precision(5,4)
+CREATE TABLE "gene_tree_node_attr" (
+  "node_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "node_type" enum,
+  "species_tree_node_id" integer,
+  "bootstrap" tinyint,
+  "duplication_confidence_score" double precision(5,4)
 );
 
 --
--- Table: gene_tree_node_tag
+-- Table: "gene_tree_node_tag"
 --
-CREATE TABLE gene_tree_node_tag (
-  node_id integer NOT NULL,
-  tag varchar(50) NOT NULL,
-  value mediumtext NOT NULL
+CREATE TABLE "gene_tree_node_tag" (
+  "node_id" integer NOT NULL,
+  "tag" varchar(50) NOT NULL,
+  "value" mediumtext NOT NULL
 );
 
 --
--- Table: gene_tree_object_store
+-- Table: "gene_tree_object_store"
 --
-CREATE TABLE gene_tree_object_store (
-  root_id integer NOT NULL,
-  data_label varchar(255) NOT NULL,
-  compressed_data mediumblob NOT NULL,
-  PRIMARY KEY (root_id, data_label)
+CREATE TABLE "gene_tree_object_store" (
+  "root_id" integer NOT NULL,
+  "data_label" varchar(255) NOT NULL,
+  "compressed_data" mediumblob NOT NULL,
+  PRIMARY KEY ("root_id", "data_label")
 );
 
 --
--- Table: gene_tree_root
+-- Table: "gene_tree_root"
 --
-CREATE TABLE gene_tree_root (
-  root_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  member_type enum NOT NULL,
-  tree_type enum NOT NULL,
-  clusterset_id varchar(20) NOT NULL DEFAULT 'default',
-  method_link_species_set_id integer NOT NULL,
-  species_tree_root_id integer,
-  gene_align_id integer,
-  ref_root_id integer,
-  stable_id varchar(40),
-  version integer
+CREATE TABLE "gene_tree_root" (
+  "root_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "member_type" enum NOT NULL,
+  "tree_type" enum NOT NULL,
+  "clusterset_id" varchar(20) NOT NULL DEFAULT 'default',
+  "method_link_species_set_id" integer NOT NULL,
+  "species_tree_root_id" integer,
+  "gene_align_id" integer,
+  "ref_root_id" integer,
+  "stable_id" varchar(40),
+  "version" integer
 );
 
-CREATE UNIQUE INDEX stable_id03 ON gene_tree_root (stable_id);
+CREATE UNIQUE INDEX "stable_id03" ON "gene_tree_root" ("stable_id");
 
 --
--- Table: gene_tree_root_attr
+-- Table: "gene_tree_root_attr"
 --
-CREATE TABLE gene_tree_root_attr (
-  root_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  aln_after_filter_length integer,
-  aln_length integer,
-  aln_num_residues integer,
-  aln_percent_identity float,
-  best_fit_model_family varchar(10),
-  best_fit_model_parameter varchar(5),
-  gene_count integer,
-  k_score float,
-  k_score_rank integer,
-  mcoffee_scores_gene_align_id integer,
-  aln_n_removed_columns integer,
-  aln_num_of_patterns integer,
-  aln_shrinking_factor float,
-  spec_count integer,
-  tree_max_branch float,
-  tree_max_length float,
-  tree_num_dup_nodes integer,
-  tree_num_leaves integer,
-  tree_num_spec_nodes integer,
-  lca_node_id integer,
-  taxonomic_coverage float,
-  ratio_species_genes float,
-  model_name varchar(40),
-  division varchar(10)
+CREATE TABLE "gene_tree_root_attr" (
+  "root_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "aln_after_filter_length" integer,
+  "aln_length" integer,
+  "aln_num_residues" integer,
+  "aln_percent_identity" float,
+  "best_fit_model_family" varchar(10),
+  "best_fit_model_parameter" varchar(5),
+  "gene_count" integer,
+  "k_score" float,
+  "k_score_rank" integer,
+  "mcoffee_scores_gene_align_id" integer,
+  "aln_n_removed_columns" integer,
+  "aln_num_of_patterns" integer,
+  "aln_shrinking_factor" float,
+  "spec_count" integer,
+  "tree_max_branch" float,
+  "tree_max_length" float,
+  "tree_num_dup_nodes" integer,
+  "tree_num_leaves" integer,
+  "tree_num_spec_nodes" integer,
+  "lca_node_id" integer,
+  "taxonomic_coverage" float,
+  "ratio_species_genes" float,
+  "model_name" varchar(40),
+  "division" varchar(10)
 );
 
 --
--- Table: gene_tree_root_tag
+-- Table: "gene_tree_root_tag"
 --
-CREATE TABLE gene_tree_root_tag (
-  root_id integer NOT NULL,
-  tag varchar(255),
-  value mediumtext NOT NULL
+CREATE TABLE "gene_tree_root_tag" (
+  "root_id" integer NOT NULL,
+  "tag" varchar(255),
+  "value" mediumtext NOT NULL
 );
 
 --
--- Table: genome_db
+-- Table: "genome_db"
 --
-CREATE TABLE genome_db (
-  genome_db_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  taxon_id integer,
-  name varchar(128) NOT NULL DEFAULT '',
-  assembly varchar(100) NOT NULL DEFAULT '',
-  genebuild varchar(100) NOT NULL DEFAULT '',
-  has_karyotype tinyint NOT NULL DEFAULT 0,
-  is_high_coverage tinyint NOT NULL DEFAULT 0,
-  genome_component varchar(5),
-  strain_name varchar(40),
-  display_name varchar(255),
-  locator varchar(400),
-  first_release smallint,
-  last_release smallint
+CREATE TABLE "genome_db" (
+  "genome_db_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "taxon_id" integer,
+  "name" varchar(128) NOT NULL DEFAULT '',
+  "assembly" varchar(100) NOT NULL DEFAULT '',
+  "genebuild" varchar(100) NOT NULL DEFAULT '',
+  "has_karyotype" tinyint NOT NULL DEFAULT 0,
+  "is_good_for_alignment" tinyint NOT NULL DEFAULT 0,
+  "genome_component" varchar(5),
+  "strain_name" varchar(40),
+  "display_name" varchar(255),
+  "locator" varchar(400),
+  "first_release" smallint,
+  "last_release" smallint
 );
 
-CREATE UNIQUE INDEX name02 ON genome_db (name, assembly, genome_component);
+CREATE UNIQUE INDEX "name02" ON "genome_db" ("name", "assembly", "genome_component");
 
 --
--- Table: genomic_align
+-- Table: "genomic_align"
 --
-CREATE TABLE genomic_align (
-  genomic_align_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  genomic_align_block_id bigint NOT NULL,
-  method_link_species_set_id integer NOT NULL DEFAULT 0,
-  dnafrag_id bigint NOT NULL DEFAULT 0,
-  dnafrag_start integer NOT NULL DEFAULT 0,
-  dnafrag_end integer NOT NULL DEFAULT 0,
-  dnafrag_strand tinyint NOT NULL DEFAULT 0,
-  cigar_line mediumtext NOT NULL,
-  visible tinyint NOT NULL DEFAULT 1,
-  node_id bigint
+CREATE TABLE "genomic_align" (
+  "genomic_align_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "genomic_align_block_id" bigint NOT NULL,
+  "method_link_species_set_id" integer NOT NULL DEFAULT 0,
+  "dnafrag_id" bigint NOT NULL DEFAULT 0,
+  "dnafrag_start" integer NOT NULL DEFAULT 0,
+  "dnafrag_end" integer NOT NULL DEFAULT 0,
+  "dnafrag_strand" tinyint NOT NULL DEFAULT 0,
+  "cigar_line" mediumtext NOT NULL,
+  "visible" tinyint NOT NULL DEFAULT 1,
+  "node_id" bigint
 );
 
 --
--- Table: genomic_align_block
+-- Table: "genomic_align_block"
 --
-CREATE TABLE genomic_align_block (
-  genomic_align_block_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  method_link_species_set_id integer NOT NULL DEFAULT 0,
-  score double precision,
-  perc_id tinyint,
-  length integer NOT NULL,
-  group_id bigint,
-  level_id tinyint NOT NULL DEFAULT 0
+CREATE TABLE "genomic_align_block" (
+  "genomic_align_block_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "method_link_species_set_id" integer NOT NULL DEFAULT 0,
+  "score" double precision,
+  "perc_id" tinyint,
+  "length" integer NOT NULL,
+  "group_id" bigint,
+  "level_id" tinyint NOT NULL DEFAULT 0
 );
 
 --
--- Table: genomic_align_tree
+-- Table: "genomic_align_tree"
 --
-CREATE TABLE genomic_align_tree (
-  node_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  parent_id bigint,
-  root_id bigint NOT NULL DEFAULT 0,
-  left_index integer NOT NULL DEFAULT 0,
-  right_index integer NOT NULL DEFAULT 0,
-  left_node_id bigint,
-  right_node_id bigint,
-  distance_to_parent double precision NOT NULL DEFAULT 1
+CREATE TABLE "genomic_align_tree" (
+  "node_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "parent_id" bigint,
+  "root_id" bigint NOT NULL DEFAULT 0,
+  "left_index" integer NOT NULL DEFAULT 0,
+  "right_index" integer NOT NULL DEFAULT 0,
+  "left_node_id" bigint,
+  "right_node_id" bigint,
+  "distance_to_parent" double precision NOT NULL DEFAULT 1
 );
 
 --
--- Table: hmm_annot
+-- Table: "hmm_annot"
 --
-CREATE TABLE hmm_annot (
-  seq_member_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  model_id varchar(40),
-  evalue float
+CREATE TABLE "hmm_annot" (
+  "seq_member_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "model_id" varchar(40),
+  "evalue" float
 );
 
 --
--- Table: hmm_curated_annot
+-- Table: "hmm_curated_annot"
 --
-CREATE TABLE hmm_curated_annot (
-  seq_member_stable_id varchar(40) NOT NULL,
-  model_id varchar(40),
-  library_version varchar(40) NOT NULL,
-  annot_date timestamp NOT NULL DEFAULT current_timestamp,
-  reason mediumtext,
-  PRIMARY KEY (seq_member_stable_id)
+CREATE TABLE "hmm_curated_annot" (
+  "seq_member_stable_id" varchar(40) NOT NULL,
+  "model_id" varchar(40),
+  "library_version" varchar(40) NOT NULL,
+  "annot_date" timestamp NOT NULL DEFAULT current_timestamp,
+  "reason" mediumtext,
+  PRIMARY KEY ("seq_member_stable_id")
 );
 
 --
--- Table: hmm_profile
+-- Table: "hmm_profile"
 --
-CREATE TABLE hmm_profile (
-  model_id varchar(40) NOT NULL,
-  name varchar(40),
-  type varchar(40) NOT NULL,
-  compressed_profile mediumblob,
-  consensus mediumtext,
-  PRIMARY KEY (model_id, type)
+CREATE TABLE "hmm_profile" (
+  "model_id" varchar(40) NOT NULL,
+  "name" varchar(40),
+  "type" varchar(40) NOT NULL,
+  "compressed_profile" mediumblob,
+  "consensus" mediumtext,
+  PRIMARY KEY ("model_id", "type")
 );
 
 --
--- Table: homology
+-- Table: "homology"
 --
-CREATE TABLE homology (
-  homology_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  method_link_species_set_id integer NOT NULL,
-  description enum NOT NULL,
-  is_tree_compliant tinyint NOT NULL DEFAULT 0,
-  dn float(10,5),
-  ds float(10,5),
-  n float(10,1),
-  s float(10,1),
-  lnl float(10,3),
-  species_tree_node_id integer,
-  gene_tree_node_id integer,
-  gene_tree_root_id integer,
-  goc_score tinyint,
-  wga_coverage decimal(5,2),
-  is_high_confidence tinyint
+CREATE TABLE "homology" (
+  "homology_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "method_link_species_set_id" integer NOT NULL,
+  "description" enum NOT NULL,
+  "is_tree_compliant" tinyint NOT NULL DEFAULT 0,
+  "dn" float(10,5),
+  "ds" float(10,5),
+  "n" float(10,1),
+  "s" float(10,1),
+  "lnl" float(10,3),
+  "species_tree_node_id" integer,
+  "gene_tree_node_id" integer,
+  "gene_tree_root_id" integer,
+  "goc_score" tinyint,
+  "wga_coverage" decimal(5,2),
+  "is_high_confidence" tinyint
 );
 
 --
--- Table: homology_member
+-- Table: "homology_member"
 --
-CREATE TABLE homology_member (
-  homology_id integer NOT NULL,
-  gene_member_id integer NOT NULL,
-  seq_member_id integer,
-  cigar_line mediumtext,
-  perc_cov float DEFAULT 0,
-  perc_id float DEFAULT 0,
-  perc_pos float DEFAULT 0,
-  PRIMARY KEY (homology_id, gene_member_id)
+CREATE TABLE "homology_member" (
+  "homology_id" integer NOT NULL,
+  "gene_member_id" integer NOT NULL,
+  "seq_member_id" integer,
+  "cigar_line" mediumtext,
+  "perc_cov" float DEFAULT 0,
+  "perc_id" float DEFAULT 0,
+  "perc_pos" float DEFAULT 0,
+  PRIMARY KEY ("homology_id", "gene_member_id")
 );
 
 --
--- Table: mapping_session
+-- Table: "mapping_session"
 --
-CREATE TABLE mapping_session (
-  mapping_session_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  type enum,
-  when_mapped timestamp NOT NULL DEFAULT current_timestamp,
-  rel_from integer,
-  rel_to integer,
-  prefix char(4) NOT NULL
+CREATE TABLE "mapping_session" (
+  "mapping_session_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "type" enum,
+  "when_mapped" timestamp NOT NULL DEFAULT current_timestamp,
+  "rel_from" integer,
+  "rel_to" integer,
+  "prefix" char(4) NOT NULL
 );
 
-CREATE UNIQUE INDEX type ON mapping_session (type, rel_from, rel_to, prefix);
+CREATE UNIQUE INDEX "type" ON "mapping_session" ("type", "rel_from", "rel_to", "prefix");
 
 --
--- Table: member_xref
+-- Table: "member_xref"
 --
-CREATE TABLE member_xref (
-  gene_member_id integer NOT NULL,
-  dbprimary_acc varchar(10) NOT NULL,
-  external_db_id integer NOT NULL,
-  PRIMARY KEY (gene_member_id, dbprimary_acc, external_db_id)
+CREATE TABLE "member_xref" (
+  "gene_member_id" integer NOT NULL,
+  "dbprimary_acc" varchar(10) NOT NULL,
+  "external_db_id" integer NOT NULL,
+  PRIMARY KEY ("gene_member_id", "dbprimary_acc", "external_db_id")
 );
 
 --
--- Table: meta
+-- Table: "meta"
 --
-CREATE TABLE meta (
-  meta_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  species_id integer DEFAULT 1,
-  meta_key varchar(40) NOT NULL,
-  meta_value text NOT NULL
+CREATE TABLE "meta" (
+  "meta_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "species_id" integer DEFAULT 1,
+  "meta_key" varchar(40) NOT NULL,
+  "meta_value" text NOT NULL
 );
 
-CREATE UNIQUE INDEX species_key_value_idx ON meta (species_id, meta_key, meta_value);
+CREATE UNIQUE INDEX "species_key_value_idx" ON "meta" ("species_id", "meta_key", "meta_value");
 
 --
--- Table: method_link
+-- Table: "method_link"
 --
-CREATE TABLE method_link (
-  method_link_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  type varchar(50) NOT NULL DEFAULT '',
-  class varchar(50) NOT NULL DEFAULT '',
-  display_name varchar(255) NOT NULL DEFAULT ''
+CREATE TABLE "method_link" (
+  "method_link_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "type" varchar(50) NOT NULL DEFAULT '',
+  "class" varchar(50) NOT NULL DEFAULT '',
+  "display_name" varchar(255) NOT NULL DEFAULT ''
 );
 
-CREATE UNIQUE INDEX type02 ON method_link (type);
+CREATE UNIQUE INDEX "type02" ON "method_link" ("type");
 
 --
--- Table: method_link_species_set
+-- Table: "method_link_species_set"
 --
-CREATE TABLE method_link_species_set (
-  method_link_species_set_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  method_link_id integer NOT NULL,
-  species_set_id integer NOT NULL,
-  name varchar(255) NOT NULL DEFAULT '',
-  source varchar(255) NOT NULL DEFAULT 'ensembl',
-  url varchar(255) NOT NULL DEFAULT '',
-  first_release smallint,
-  last_release smallint
+CREATE TABLE "method_link_species_set" (
+  "method_link_species_set_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "method_link_id" integer NOT NULL,
+  "species_set_id" integer NOT NULL,
+  "name" varchar(255) NOT NULL DEFAULT '',
+  "source" varchar(255) NOT NULL DEFAULT 'ensembl',
+  "url" varchar(255) NOT NULL DEFAULT '',
+  "first_release" smallint,
+  "last_release" smallint
 );
 
-CREATE UNIQUE INDEX method_link_id ON method_link_species_set (method_link_id, species_set_id);
+CREATE UNIQUE INDEX "method_link_id" ON "method_link_species_set" ("method_link_id", "species_set_id");
 
 --
--- Table: method_link_species_set_attr
+-- Table: "method_link_species_set_attr"
 --
-CREATE TABLE method_link_species_set_attr (
-  method_link_species_set_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  n_goc_null integer,
-  n_goc_0 integer,
-  n_goc_25 integer,
-  n_goc_50 integer,
-  n_goc_75 integer,
-  n_goc_100 integer,
-  perc_orth_above_goc_thresh float,
-  goc_quality_threshold integer,
-  wga_quality_threshold integer,
-  perc_orth_above_wga_thresh float,
-  threshold_on_ds integer
+CREATE TABLE "method_link_species_set_attr" (
+  "method_link_species_set_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "n_goc_null" integer,
+  "n_goc_0" integer,
+  "n_goc_25" integer,
+  "n_goc_50" integer,
+  "n_goc_75" integer,
+  "n_goc_100" integer,
+  "perc_orth_above_goc_thresh" float,
+  "goc_quality_threshold" integer,
+  "wga_quality_threshold" integer,
+  "perc_orth_above_wga_thresh" float,
+  "threshold_on_ds" integer
 );
 
 --
--- Table: method_link_species_set_tag
+-- Table: "method_link_species_set_tag"
 --
-CREATE TABLE method_link_species_set_tag (
-  method_link_species_set_id integer NOT NULL,
-  tag varchar(50) NOT NULL,
-  value mediumtext NOT NULL,
-  PRIMARY KEY (method_link_species_set_id, tag)
+CREATE TABLE "method_link_species_set_tag" (
+  "method_link_species_set_id" integer NOT NULL,
+  "tag" varchar(50) NOT NULL,
+  "value" mediumtext NOT NULL,
+  PRIMARY KEY ("method_link_species_set_id", "tag")
 );
 
 --
--- Table: ncbi_taxa_name
+-- Table: "ncbi_taxa_name"
 --
-CREATE TABLE ncbi_taxa_name (
-  taxon_id integer NOT NULL,
-  name varchar(255) NOT NULL,
-  name_class varchar(50) NOT NULL
+CREATE TABLE "ncbi_taxa_name" (
+  "taxon_id" integer NOT NULL,
+  "name" varchar(255) NOT NULL,
+  "name_class" varchar(50) NOT NULL
 );
 
 --
--- Table: ncbi_taxa_node
+-- Table: "ncbi_taxa_node"
 --
-CREATE TABLE ncbi_taxa_node (
-  taxon_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  parent_id integer NOT NULL,
-  rank char(32) NOT NULL DEFAULT '',
-  genbank_hidden_flag tinyint NOT NULL DEFAULT 0,
-  left_index integer NOT NULL DEFAULT 0,
-  right_index integer NOT NULL DEFAULT 0,
-  root_id integer NOT NULL DEFAULT 1
+CREATE TABLE "ncbi_taxa_node" (
+  "taxon_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "parent_id" integer NOT NULL,
+  "rank" char(32) NOT NULL DEFAULT '',
+  "genbank_hidden_flag" tinyint NOT NULL DEFAULT 0,
+  "left_index" integer NOT NULL DEFAULT 0,
+  "right_index" integer NOT NULL DEFAULT 0,
+  "root_id" integer NOT NULL DEFAULT 1
 );
 
 --
--- Table: other_member_sequence
+-- Table: "other_member_sequence"
 --
-CREATE TABLE other_member_sequence (
-  seq_member_id integer NOT NULL,
-  seq_type varchar(40) NOT NULL,
-  length integer NOT NULL,
-  sequence mediumtext NOT NULL,
-  PRIMARY KEY (seq_member_id, seq_type)
+CREATE TABLE "other_member_sequence" (
+  "seq_member_id" integer NOT NULL,
+  "seq_type" varchar(40) NOT NULL,
+  "length" integer NOT NULL,
+  "sequence" mediumtext NOT NULL,
+  PRIMARY KEY ("seq_member_id", "seq_type")
 );
 
 --
--- Table: peptide_align_feature
+-- Table: "peptide_align_feature"
 --
-CREATE TABLE peptide_align_feature (
-  peptide_align_feature_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  qmember_id integer NOT NULL,
-  hmember_id integer NOT NULL,
-  qgenome_db_id integer,
-  hgenome_db_id integer,
-  qstart integer NOT NULL DEFAULT 0,
-  qend integer NOT NULL DEFAULT 0,
-  hstart integer NOT NULL DEFAULT 0,
-  hend integer NOT NULL DEFAULT 0,
-  score double precision(16,4) NOT NULL DEFAULT 0.0000,
-  evalue double precision NOT NULL,
-  align_length integer NOT NULL,
-  identical_matches integer NOT NULL,
-  perc_ident integer NOT NULL,
-  positive_matches integer NOT NULL,
-  perc_pos integer NOT NULL,
-  hit_rank integer NOT NULL,
-  cigar_line mediumtext
+CREATE TABLE "peptide_align_feature" (
+  "peptide_align_feature_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "qmember_id" integer NOT NULL,
+  "hmember_id" integer NOT NULL,
+  "qgenome_db_id" integer,
+  "hgenome_db_id" integer,
+  "qstart" integer NOT NULL DEFAULT 0,
+  "qend" integer NOT NULL DEFAULT 0,
+  "hstart" integer NOT NULL DEFAULT 0,
+  "hend" integer NOT NULL DEFAULT 0,
+  "score" double precision(16,4) NOT NULL DEFAULT 0.0000,
+  "evalue" double precision NOT NULL,
+  "align_length" integer NOT NULL,
+  "identical_matches" integer NOT NULL,
+  "perc_ident" integer NOT NULL,
+  "positive_matches" integer NOT NULL,
+  "perc_pos" integer NOT NULL,
+  "hit_rank" integer NOT NULL,
+  "cigar_line" mediumtext
 );
 
 --
--- Table: seq_member
+-- Table: "seq_member"
 --
-CREATE TABLE seq_member (
-  seq_member_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  stable_id varchar(128) NOT NULL,
-  version integer DEFAULT 0,
-  source_name enum NOT NULL,
-  taxon_id integer NOT NULL,
-  genome_db_id integer,
-  sequence_id integer,
-  gene_member_id integer,
-  has_transcript_edits tinyint NOT NULL DEFAULT 0,
-  has_translation_edits tinyint NOT NULL DEFAULT 0,
-  description text,
-  dnafrag_id bigint,
-  dnafrag_start integer,
-  dnafrag_end integer,
-  dnafrag_strand tinyint,
-  display_label varchar(128)
+CREATE TABLE "seq_member" (
+  "seq_member_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "stable_id" varchar(128) NOT NULL,
+  "version" integer DEFAULT 0,
+  "source_name" enum NOT NULL,
+  "taxon_id" integer NOT NULL,
+  "genome_db_id" integer,
+  "sequence_id" integer,
+  "gene_member_id" integer,
+  "has_transcript_edits" tinyint NOT NULL DEFAULT 0,
+  "has_translation_edits" tinyint NOT NULL DEFAULT 0,
+  "description" text,
+  "dnafrag_id" bigint,
+  "dnafrag_start" integer,
+  "dnafrag_end" integer,
+  "dnafrag_strand" tinyint,
+  "display_label" varchar(128)
 );
 
-CREATE UNIQUE INDEX stable_id04 ON seq_member (stable_id);
+CREATE UNIQUE INDEX "stable_id04" ON "seq_member" ("stable_id");
 
 --
--- Table: seq_member_projection
+-- Table: "seq_member_projection"
 --
-CREATE TABLE seq_member_projection (
-  target_seq_member_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  source_seq_member_id integer NOT NULL,
-  identity float(5,2) NOT NULL
+CREATE TABLE "seq_member_projection" (
+  "target_seq_member_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "source_seq_member_id" integer NOT NULL,
+  "identity" float(5,2) NOT NULL
 );
 
 --
--- Table: seq_member_projection_stable_id
+-- Table: "seq_member_projection_stable_id"
 --
-CREATE TABLE seq_member_projection_stable_id (
-  target_seq_member_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  source_stable_id varchar(128) NOT NULL
+CREATE TABLE "seq_member_projection_stable_id" (
+  "target_seq_member_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "source_stable_id" varchar(128) NOT NULL
 );
 
 --
--- Table: sequence
+-- Table: "sequence"
 --
-CREATE TABLE sequence (
-  sequence_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  length integer NOT NULL,
-  md5sum char(32) NOT NULL,
-  sequence longtext NOT NULL
+CREATE TABLE "sequence" (
+  "sequence_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "length" integer NOT NULL,
+  "md5sum" char(32) NOT NULL,
+  "sequence" longtext NOT NULL
 );
 
 --
--- Table: species_set
+-- Table: "species_set"
 --
-CREATE TABLE species_set (
-  species_set_id integer NOT NULL,
-  genome_db_id integer NOT NULL,
-  PRIMARY KEY (species_set_id, genome_db_id)
+CREATE TABLE "species_set" (
+  "species_set_id" integer NOT NULL,
+  "genome_db_id" integer NOT NULL,
+  PRIMARY KEY ("species_set_id", "genome_db_id")
 );
 
 --
--- Table: species_set_header
+-- Table: "species_set_header"
 --
-CREATE TABLE species_set_header (
-  species_set_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  name varchar(255) NOT NULL DEFAULT '',
-  size integer NOT NULL,
-  first_release smallint,
-  last_release smallint
+CREATE TABLE "species_set_header" (
+  "species_set_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "name" varchar(255) NOT NULL DEFAULT '',
+  "size" integer NOT NULL,
+  "first_release" smallint,
+  "last_release" smallint
 );
 
 --
--- Table: species_set_tag
+-- Table: "species_set_tag"
 --
-CREATE TABLE species_set_tag (
-  species_set_id integer NOT NULL,
-  tag varchar(50) NOT NULL,
-  value mediumtext NOT NULL,
-  PRIMARY KEY (species_set_id, tag)
+CREATE TABLE "species_set_tag" (
+  "species_set_id" integer NOT NULL,
+  "tag" varchar(50) NOT NULL,
+  "value" mediumtext NOT NULL,
+  PRIMARY KEY ("species_set_id", "tag")
 );
 
 --
--- Table: species_tree_node
+-- Table: "species_tree_node"
 --
-CREATE TABLE species_tree_node (
-  node_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  parent_id integer,
-  root_id integer,
-  left_index integer NOT NULL DEFAULT 0,
-  right_index integer NOT NULL DEFAULT 0,
-  distance_to_parent double precision DEFAULT 1,
-  taxon_id integer,
-  genome_db_id integer,
-  node_name varchar(255)
+CREATE TABLE "species_tree_node" (
+  "node_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "parent_id" integer,
+  "root_id" integer,
+  "left_index" integer NOT NULL DEFAULT 0,
+  "right_index" integer NOT NULL DEFAULT 0,
+  "distance_to_parent" double precision DEFAULT 1,
+  "taxon_id" integer,
+  "genome_db_id" integer,
+  "node_name" varchar(255)
 );
 
 --
--- Table: species_tree_node_attr
+-- Table: "species_tree_node_attr"
 --
-CREATE TABLE species_tree_node_attr (
-  node_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  nb_long_genes integer,
-  nb_short_genes integer,
-  avg_dupscore float,
-  avg_dupscore_nondub float,
-  nb_dubious_nodes integer,
-  nb_dup_nodes integer,
-  nb_genes integer,
-  nb_genes_in_tree integer,
-  nb_genes_in_tree_multi_species integer,
-  nb_genes_in_tree_single_species integer,
-  nb_nodes integer,
-  nb_orphan_genes integer,
-  nb_seq integer,
-  nb_spec_nodes integer,
-  nb_gene_splits integer,
-  nb_split_genes integer,
-  root_avg_gene float,
-  root_avg_gene_per_spec float,
-  root_avg_spec float,
-  root_max_gene integer,
-  root_max_spec integer,
-  root_min_gene integer,
-  root_min_spec integer,
-  root_nb_genes integer,
-  root_nb_trees integer
+CREATE TABLE "species_tree_node_attr" (
+  "node_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "nb_long_genes" integer,
+  "nb_short_genes" integer,
+  "avg_dupscore" float,
+  "avg_dupscore_nondub" float,
+  "nb_dubious_nodes" integer,
+  "nb_dup_nodes" integer,
+  "nb_genes" integer,
+  "nb_genes_in_tree" integer,
+  "nb_genes_in_tree_multi_species" integer,
+  "nb_genes_in_tree_single_species" integer,
+  "nb_nodes" integer,
+  "nb_orphan_genes" integer,
+  "nb_seq" integer,
+  "nb_spec_nodes" integer,
+  "nb_gene_splits" integer,
+  "nb_split_genes" integer,
+  "root_avg_gene" float,
+  "root_avg_gene_per_spec" float,
+  "root_avg_spec" float,
+  "root_max_gene" integer,
+  "root_max_spec" integer,
+  "root_min_gene" integer,
+  "root_min_spec" integer,
+  "root_nb_genes" integer,
+  "root_nb_trees" integer
 );
 
 --
--- Table: species_tree_node_tag
+-- Table: "species_tree_node_tag"
 --
-CREATE TABLE species_tree_node_tag (
-  node_id integer NOT NULL,
-  tag varchar(50) NOT NULL,
-  value mediumtext NOT NULL
+CREATE TABLE "species_tree_node_tag" (
+  "node_id" integer NOT NULL,
+  "tag" varchar(50) NOT NULL,
+  "value" mediumtext NOT NULL
 );
 
 --
--- Table: species_tree_root
+-- Table: "species_tree_root"
 --
-CREATE TABLE species_tree_root (
-  root_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  method_link_species_set_id integer NOT NULL,
-  label varchar(256) NOT NULL DEFAULT 'default'
+CREATE TABLE "species_tree_root" (
+  "root_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "method_link_species_set_id" integer NOT NULL,
+  "label" varchar(256) NOT NULL DEFAULT 'default'
 );
 
-CREATE UNIQUE INDEX method_link_species_set_id ON species_tree_root (method_link_species_set_id, label);
+CREATE UNIQUE INDEX "method_link_species_set_id" ON "species_tree_root" ("method_link_species_set_id", "label");
 
 --
--- Table: stable_id_history
+-- Table: "stable_id_history"
 --
-CREATE TABLE stable_id_history (
-  mapping_session_id integer NOT NULL,
-  stable_id_from varchar(40) NOT NULL DEFAULT '',
-  version_from integer,
-  stable_id_to varchar(40) NOT NULL DEFAULT '',
-  version_to integer,
-  contribution float,
-  PRIMARY KEY (mapping_session_id, stable_id_from, stable_id_to)
+CREATE TABLE "stable_id_history" (
+  "mapping_session_id" integer NOT NULL,
+  "stable_id_from" varchar(40) NOT NULL DEFAULT '',
+  "version_from" integer,
+  "stable_id_to" varchar(40) NOT NULL DEFAULT '',
+  "version_to" integer,
+  "contribution" float,
+  PRIMARY KEY ("mapping_session_id", "stable_id_from", "stable_id_to")
 );
 
 --
--- Table: synteny_region
+-- Table: "synteny_region"
 --
-CREATE TABLE synteny_region (
-  synteny_region_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  method_link_species_set_id integer NOT NULL
+CREATE TABLE "synteny_region" (
+  "synteny_region_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "method_link_species_set_id" integer NOT NULL
 );
 
 COMMIT;
diff --git a/modules/t/test-genome-DBs/mus_musculus/core/SQLite/table.sql b/modules/t/test-genome-DBs/mus_musculus/core/SQLite/table.sql
index 3e2ae64a0294ef84740ae2603371ec93d17ca2cc..abbc3a509b56fd56abfe522e37744a300880af67 100644
--- a/modules/t/test-genome-DBs/mus_musculus/core/SQLite/table.sql
+++ b/modules/t/test-genome-DBs/mus_musculus/core/SQLite/table.sql
@@ -1,1002 +1,1002 @@
 -- 
 -- Created by SQL::Translator::Producer::SQLite
--- Created on Thu Jun 28 16:51:47 2018
+-- Created on Wed Sep 26 12:07:12 2018
 -- 
 
 BEGIN TRANSACTION;
 
 --
--- Table: alt_allele
+-- Table: "alt_allele"
 --
-CREATE TABLE alt_allele (
-  alt_allele_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  alt_allele_group_id integer NOT NULL,
-  gene_id integer NOT NULL
+CREATE TABLE "alt_allele" (
+  "alt_allele_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "alt_allele_group_id" integer NOT NULL,
+  "gene_id" integer NOT NULL
 );
 
-CREATE UNIQUE INDEX gene_idx ON alt_allele (gene_id);
+CREATE UNIQUE INDEX "gene_idx" ON "alt_allele" ("gene_id");
 
 --
--- Table: alt_allele_attrib
+-- Table: "alt_allele_attrib"
 --
-CREATE TABLE alt_allele_attrib (
-  alt_allele_id integer,
-  attrib enum
+CREATE TABLE "alt_allele_attrib" (
+  "alt_allele_id" integer,
+  "attrib" enum
 );
 
 --
--- Table: alt_allele_group
+-- Table: "alt_allele_group"
 --
-CREATE TABLE alt_allele_group (
-  alt_allele_group_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL
+CREATE TABLE "alt_allele_group" (
+  "alt_allele_group_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL
 );
 
 --
--- Table: analysis
+-- Table: "analysis"
 --
-CREATE TABLE analysis (
-  analysis_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  created datetime,
-  logic_name varchar(40) NOT NULL DEFAULT '',
-  db varchar(120),
-  db_version varchar(40),
-  db_file varchar(120),
-  program varchar(80),
-  program_version varchar(40),
-  program_file varchar(80),
-  parameters text,
-  module varchar(80),
-  module_version varchar(40),
-  gff_source varchar(40),
-  gff_feature varchar(40)
+CREATE TABLE "analysis" (
+  "analysis_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "created" datetime,
+  "logic_name" varchar(40) NOT NULL DEFAULT '',
+  "db" varchar(120),
+  "db_version" varchar(40),
+  "db_file" varchar(120),
+  "program" varchar(80),
+  "program_version" varchar(40),
+  "program_file" varchar(80),
+  "parameters" text,
+  "module" varchar(80),
+  "module_version" varchar(40),
+  "gff_source" varchar(40),
+  "gff_feature" varchar(40)
 );
 
-CREATE UNIQUE INDEX logic_name_idx ON analysis (logic_name);
+CREATE UNIQUE INDEX "logic_name_idx" ON "analysis" ("logic_name");
 
 --
--- Table: analysis_description
+-- Table: "analysis_description"
 --
-CREATE TABLE analysis_description (
-  analysis_id integer NOT NULL DEFAULT 0,
-  description text,
-  display_label varchar(255),
-  displayable tinyint NOT NULL DEFAULT 1,
-  web_data text
+CREATE TABLE "analysis_description" (
+  "analysis_id" integer NOT NULL DEFAULT 0,
+  "description" text,
+  "display_label" varchar(255),
+  "displayable" tinyint NOT NULL DEFAULT 1,
+  "web_data" text
 );
 
-CREATE UNIQUE INDEX analysis_idx ON analysis_description (analysis_id);
+CREATE UNIQUE INDEX "analysis_idx" ON "analysis_description" ("analysis_id");
 
 --
--- Table: assembly
+-- Table: "assembly"
 --
-CREATE TABLE assembly (
-  asm_seq_region_id integer NOT NULL DEFAULT 0,
-  cmp_seq_region_id integer NOT NULL DEFAULT 0,
-  asm_start integer NOT NULL DEFAULT 0,
-  asm_end integer NOT NULL DEFAULT 0,
-  cmp_start integer NOT NULL DEFAULT 0,
-  cmp_end integer NOT NULL DEFAULT 0,
-  ori tinyint NOT NULL DEFAULT 0
+CREATE TABLE "assembly" (
+  "asm_seq_region_id" integer NOT NULL DEFAULT 0,
+  "cmp_seq_region_id" integer NOT NULL DEFAULT 0,
+  "asm_start" integer NOT NULL DEFAULT 0,
+  "asm_end" integer NOT NULL DEFAULT 0,
+  "cmp_start" integer NOT NULL DEFAULT 0,
+  "cmp_end" integer NOT NULL DEFAULT 0,
+  "ori" tinyint NOT NULL DEFAULT 0
 );
 
-CREATE UNIQUE INDEX all_idx ON assembly (asm_seq_region_id, cmp_seq_region_id, asm_start, asm_end, cmp_start, cmp_end, ori);
+CREATE UNIQUE INDEX "all_idx" ON "assembly" ("asm_seq_region_id", "cmp_seq_region_id", "asm_start", "asm_end", "cmp_start", "cmp_end", "ori");
 
 --
--- Table: assembly_exception
+-- Table: "assembly_exception"
 --
-CREATE TABLE assembly_exception (
-  assembly_exception_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  exc_type enum NOT NULL DEFAULT 'HAP',
-  exc_seq_region_id integer NOT NULL DEFAULT 0,
-  exc_seq_region_start integer NOT NULL DEFAULT 0,
-  exc_seq_region_end integer NOT NULL DEFAULT 0,
-  ori integer NOT NULL DEFAULT 0
+CREATE TABLE "assembly_exception" (
+  "assembly_exception_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "exc_type" enum NOT NULL DEFAULT 'HAP',
+  "exc_seq_region_id" integer NOT NULL DEFAULT 0,
+  "exc_seq_region_start" integer NOT NULL DEFAULT 0,
+  "exc_seq_region_end" integer NOT NULL DEFAULT 0,
+  "ori" integer NOT NULL DEFAULT 0
 );
 
 --
--- Table: associated_group
+-- Table: "associated_group"
 --
-CREATE TABLE associated_group (
-  associated_group_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  description varchar(128)
+CREATE TABLE "associated_group" (
+  "associated_group_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "description" varchar(128)
 );
 
 --
--- Table: associated_xref
+-- Table: "associated_xref"
 --
-CREATE TABLE associated_xref (
-  associated_xref_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  object_xref_id integer NOT NULL DEFAULT 0,
-  xref_id integer NOT NULL DEFAULT 0,
-  source_xref_id integer,
-  condition_type varchar(128),
-  associated_group_id integer,
-  rank integer DEFAULT 0
+CREATE TABLE "associated_xref" (
+  "associated_xref_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "object_xref_id" integer NOT NULL DEFAULT 0,
+  "xref_id" integer NOT NULL DEFAULT 0,
+  "source_xref_id" integer,
+  "condition_type" varchar(128),
+  "associated_group_id" integer,
+  "rank" integer DEFAULT 0
 );
 
-CREATE UNIQUE INDEX object_associated_source_type_idx ON associated_xref (object_xref_id, xref_id, source_xref_id, condition_type, associated_group_id);
+CREATE UNIQUE INDEX "object_associated_source_type_idx" ON "associated_xref" ("object_xref_id", "xref_id", "source_xref_id", "condition_type", "associated_group_id");
 
 --
--- Table: attrib_type
+-- Table: "attrib_type"
 --
-CREATE TABLE attrib_type (
-  attrib_type_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  code varchar(20) NOT NULL DEFAULT '',
-  name varchar(255) NOT NULL DEFAULT '',
-  description text
+CREATE TABLE "attrib_type" (
+  "attrib_type_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "code" varchar(20) NOT NULL DEFAULT '',
+  "name" varchar(255) NOT NULL DEFAULT '',
+  "description" text
 );
 
-CREATE UNIQUE INDEX code_idx ON attrib_type (code);
+CREATE UNIQUE INDEX "code_idx" ON "attrib_type" ("code");
 
 --
--- Table: biotype
+-- Table: "biotype"
 --
-CREATE TABLE biotype (
-  biotype_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  name varchar(64) NOT NULL,
-  object_type enum NOT NULL DEFAULT 'gene',
-  db_type varchar NOT NULL DEFAULT 'core',
-  attrib_type_id integer,
-  description text,
-  biotype_group enum,
-  so_acc varchar(64)
+CREATE TABLE "biotype" (
+  "biotype_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "name" varchar(64) NOT NULL,
+  "object_type" enum NOT NULL DEFAULT 'gene',
+  "db_type" varchar NOT NULL DEFAULT 'core',
+  "attrib_type_id" integer,
+  "description" text,
+  "biotype_group" enum,
+  "so_acc" varchar(64)
 );
 
-CREATE UNIQUE INDEX name_type_idx ON biotype (name, object_type);
+CREATE UNIQUE INDEX "name_type_idx" ON "biotype" ("name", "object_type");
 
 --
--- Table: coord_system
+-- Table: "coord_system"
 --
-CREATE TABLE coord_system (
-  coord_system_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  species_id integer NOT NULL DEFAULT 1,
-  name varchar(40) NOT NULL,
-  version varchar(255),
-  rank integer NOT NULL,
-  attrib varchar
+CREATE TABLE "coord_system" (
+  "coord_system_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "species_id" integer NOT NULL DEFAULT 1,
+  "name" varchar(40) NOT NULL,
+  "version" varchar(255),
+  "rank" integer NOT NULL,
+  "attrib" varchar
 );
 
-CREATE UNIQUE INDEX name_idx ON coord_system (name, version, species_id);
+CREATE UNIQUE INDEX "name_idx" ON "coord_system" ("name", "version", "species_id");
 
-CREATE UNIQUE INDEX rank_idx ON coord_system (rank, species_id);
+CREATE UNIQUE INDEX "rank_idx" ON "coord_system" ("rank", "species_id");
 
 --
--- Table: data_file
+-- Table: "data_file"
 --
-CREATE TABLE data_file (
-  data_file_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  coord_system_id integer NOT NULL,
-  analysis_id smallint NOT NULL,
-  name varchar(100) NOT NULL,
-  version_lock tinyint NOT NULL DEFAULT 0,
-  absolute tinyint NOT NULL DEFAULT 0,
-  url text,
-  file_type enum
+CREATE TABLE "data_file" (
+  "data_file_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "coord_system_id" integer NOT NULL,
+  "analysis_id" smallint NOT NULL,
+  "name" varchar(100) NOT NULL,
+  "version_lock" tinyint NOT NULL DEFAULT 0,
+  "absolute" tinyint NOT NULL DEFAULT 0,
+  "url" text,
+  "file_type" enum
 );
 
-CREATE UNIQUE INDEX df_unq_idx ON data_file (coord_system_id, analysis_id, name, file_type);
+CREATE UNIQUE INDEX "df_unq_idx" ON "data_file" ("coord_system_id", "analysis_id", "name", "file_type");
 
 --
--- Table: density_feature
+-- Table: "density_feature"
 --
-CREATE TABLE density_feature (
-  density_feature_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  density_type_id integer NOT NULL DEFAULT 0,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  density_value float NOT NULL DEFAULT 0
+CREATE TABLE "density_feature" (
+  "density_feature_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "density_type_id" integer NOT NULL DEFAULT 0,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "density_value" float NOT NULL DEFAULT 0
 );
 
 --
--- Table: density_type
+-- Table: "density_type"
 --
-CREATE TABLE density_type (
-  density_type_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  analysis_id integer NOT NULL DEFAULT 0,
-  block_size integer NOT NULL DEFAULT 0,
-  region_features integer NOT NULL DEFAULT 0,
-  value_type enum NOT NULL DEFAULT 'sum'
+CREATE TABLE "density_type" (
+  "density_type_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "analysis_id" integer NOT NULL DEFAULT 0,
+  "block_size" integer NOT NULL DEFAULT 0,
+  "region_features" integer NOT NULL DEFAULT 0,
+  "value_type" enum NOT NULL DEFAULT 'sum'
 );
 
-CREATE UNIQUE INDEX analysis_id ON density_type (analysis_id, block_size, region_features);
+CREATE UNIQUE INDEX "analysis_id" ON "density_type" ("analysis_id", "block_size", "region_features");
 
 --
--- Table: dependent_xref
+-- Table: "dependent_xref"
 --
-CREATE TABLE dependent_xref (
-  object_xref_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  master_xref_id integer NOT NULL,
-  dependent_xref_id integer NOT NULL
+CREATE TABLE "dependent_xref" (
+  "object_xref_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "master_xref_id" integer NOT NULL,
+  "dependent_xref_id" integer NOT NULL
 );
 
 --
--- Table: ditag
+-- Table: "ditag"
 --
-CREATE TABLE ditag (
-  ditag_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  name varchar(30),
-  type varchar(30),
-  tag_count smallint DEFAULT 1,
-  sequence text
+CREATE TABLE "ditag" (
+  "ditag_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "name" varchar(30),
+  "type" varchar(30),
+  "tag_count" smallint DEFAULT 1,
+  "sequence" text
 );
 
 --
--- Table: ditag_feature
+-- Table: "ditag_feature"
 --
-CREATE TABLE ditag_feature (
-  ditag_feature_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  ditag_id integer NOT NULL DEFAULT 0,
-  ditag_pair_id integer NOT NULL DEFAULT 0,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  seq_region_strand tinyint NOT NULL DEFAULT 0,
-  analysis_id integer NOT NULL DEFAULT 0,
-  hit_start integer NOT NULL DEFAULT 0,
-  hit_end integer NOT NULL DEFAULT 0,
-  hit_strand tinyint NOT NULL DEFAULT 0,
-  cigar_line text,
-  ditag_side char(1) DEFAULT ''
+CREATE TABLE "ditag_feature" (
+  "ditag_feature_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "ditag_id" integer NOT NULL DEFAULT 0,
+  "ditag_pair_id" integer NOT NULL DEFAULT 0,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "seq_region_strand" tinyint NOT NULL DEFAULT 0,
+  "analysis_id" integer NOT NULL DEFAULT 0,
+  "hit_start" integer NOT NULL DEFAULT 0,
+  "hit_end" integer NOT NULL DEFAULT 0,
+  "hit_strand" tinyint NOT NULL DEFAULT 0,
+  "cigar_line" text,
+  "ditag_side" char(1) DEFAULT ''
 );
 
 --
--- Table: dna
+-- Table: "dna"
 --
-CREATE TABLE dna (
-  seq_region_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL DEFAULT 0,
-  sequence mediumtext NOT NULL
+CREATE TABLE "dna" (
+  "seq_region_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL DEFAULT 0,
+  "sequence" mediumtext NOT NULL
 );
 
 --
--- Table: dna_align_feature
+-- Table: "dna_align_feature"
 --
-CREATE TABLE dna_align_feature (
-  dna_align_feature_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  seq_region_strand tinyint NOT NULL DEFAULT 0,
-  hit_start integer NOT NULL DEFAULT 0,
-  hit_end integer NOT NULL DEFAULT 0,
-  hit_strand tinyint NOT NULL DEFAULT 0,
-  hit_name varchar(40) NOT NULL DEFAULT '',
-  analysis_id integer NOT NULL DEFAULT 0,
-  score double precision,
-  evalue double precision,
-  perc_ident float,
-  cigar_line text,
-  external_db_id smallint,
-  hcoverage double precision,
-  align_type enum DEFAULT 'ensembl'
+CREATE TABLE "dna_align_feature" (
+  "dna_align_feature_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "seq_region_strand" tinyint NOT NULL DEFAULT 0,
+  "hit_start" integer NOT NULL DEFAULT 0,
+  "hit_end" integer NOT NULL DEFAULT 0,
+  "hit_strand" tinyint NOT NULL DEFAULT 0,
+  "hit_name" varchar(40) NOT NULL DEFAULT '',
+  "analysis_id" integer NOT NULL DEFAULT 0,
+  "score" double precision,
+  "evalue" double precision,
+  "perc_ident" float,
+  "cigar_line" text,
+  "external_db_id" smallint,
+  "hcoverage" double precision,
+  "align_type" enum DEFAULT 'ensembl'
 );
 
 --
--- Table: dna_align_feature_attrib
+-- Table: "dna_align_feature_attrib"
 --
-CREATE TABLE dna_align_feature_attrib (
-  dna_align_feature_id integer NOT NULL,
-  attrib_type_id smallint NOT NULL,
-  value text NOT NULL
+CREATE TABLE "dna_align_feature_attrib" (
+  "dna_align_feature_id" integer NOT NULL,
+  "attrib_type_id" smallint NOT NULL,
+  "value" text NOT NULL
 );
 
-CREATE UNIQUE INDEX dna_align_feature_attribx ON dna_align_feature_attrib (dna_align_feature_id, attrib_type_id, value);
+CREATE UNIQUE INDEX "dna_align_feature_attribx" ON "dna_align_feature_attrib" ("dna_align_feature_id", "attrib_type_id", "value");
 
 --
--- Table: exon
+-- Table: "exon"
 --
-CREATE TABLE exon (
-  exon_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL,
-  seq_region_start integer NOT NULL,
-  seq_region_end integer NOT NULL,
-  seq_region_strand tinyint NOT NULL,
-  phase tinyint NOT NULL,
-  end_phase tinyint NOT NULL,
-  is_current tinyint NOT NULL DEFAULT 1,
-  is_constitutive tinyint NOT NULL DEFAULT 0,
-  stable_id varchar(128),
-  version smallint,
-  created_date datetime,
-  modified_date datetime
+CREATE TABLE "exon" (
+  "exon_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL,
+  "seq_region_start" integer NOT NULL,
+  "seq_region_end" integer NOT NULL,
+  "seq_region_strand" tinyint NOT NULL,
+  "phase" tinyint NOT NULL,
+  "end_phase" tinyint NOT NULL,
+  "is_current" tinyint NOT NULL DEFAULT 1,
+  "is_constitutive" tinyint NOT NULL DEFAULT 0,
+  "stable_id" varchar(128),
+  "version" smallint,
+  "created_date" datetime,
+  "modified_date" datetime
 );
 
 --
--- Table: exon_transcript
+-- Table: "exon_transcript"
 --
-CREATE TABLE exon_transcript (
-  exon_id integer NOT NULL DEFAULT 0,
-  transcript_id integer NOT NULL DEFAULT 0,
-  rank integer NOT NULL DEFAULT 0,
-  PRIMARY KEY (exon_id, transcript_id, rank)
+CREATE TABLE "exon_transcript" (
+  "exon_id" integer NOT NULL DEFAULT 0,
+  "transcript_id" integer NOT NULL DEFAULT 0,
+  "rank" integer NOT NULL DEFAULT 0,
+  PRIMARY KEY ("exon_id", "transcript_id", "rank")
 );
 
 --
--- Table: external_db
+-- Table: "external_db"
 --
-CREATE TABLE external_db (
-  external_db_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL DEFAULT 0,
-  db_name varchar(27) NOT NULL DEFAULT '',
-  db_release varchar(40) NOT NULL DEFAULT '',
-  status enum NOT NULL DEFAULT 'KNOWNXREF',
-  priority integer NOT NULL DEFAULT 0,
-  db_display_name varchar(255),
-  type enum,
-  secondary_db_name varchar(255),
-  secondary_db_table varchar(255),
-  description text
+CREATE TABLE "external_db" (
+  "external_db_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL DEFAULT 0,
+  "db_name" varchar(27) NOT NULL DEFAULT '',
+  "db_release" varchar(40) NOT NULL DEFAULT '',
+  "status" enum NOT NULL DEFAULT 'KNOWNXREF',
+  "priority" integer NOT NULL DEFAULT 0,
+  "db_display_name" varchar(255),
+  "type" enum,
+  "secondary_db_name" varchar(255),
+  "secondary_db_table" varchar(255),
+  "description" text
 );
 
-CREATE UNIQUE INDEX db_name_db_release_idx ON external_db (db_name, db_release);
+CREATE UNIQUE INDEX "db_name_db_release_idx" ON "external_db" ("db_name", "db_release");
 
 --
--- Table: external_synonym
+-- Table: "external_synonym"
 --
-CREATE TABLE external_synonym (
-  xref_id integer NOT NULL DEFAULT 0,
-  synonym varchar(40) NOT NULL DEFAULT '',
-  PRIMARY KEY (xref_id, synonym)
+CREATE TABLE "external_synonym" (
+  "xref_id" integer NOT NULL DEFAULT 0,
+  "synonym" varchar(40) NOT NULL DEFAULT '',
+  PRIMARY KEY ("xref_id", "synonym")
 );
 
 --
--- Table: gene
+-- Table: "gene"
 --
-CREATE TABLE gene (
-  gene_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  biotype varchar(40) NOT NULL,
-  analysis_id smallint NOT NULL,
-  seq_region_id integer NOT NULL,
-  seq_region_start integer NOT NULL,
-  seq_region_end integer NOT NULL,
-  seq_region_strand tinyint NOT NULL,
-  display_xref_id integer,
-  source varchar(40) NOT NULL,
-  description text,
-  is_current tinyint NOT NULL DEFAULT 1,
-  canonical_transcript_id integer NOT NULL,
-  stable_id varchar(128),
-  version smallint,
-  created_date datetime,
-  modified_date datetime
+CREATE TABLE "gene" (
+  "gene_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "biotype" varchar(40) NOT NULL,
+  "analysis_id" smallint NOT NULL,
+  "seq_region_id" integer NOT NULL,
+  "seq_region_start" integer NOT NULL,
+  "seq_region_end" integer NOT NULL,
+  "seq_region_strand" tinyint NOT NULL,
+  "display_xref_id" integer,
+  "source" varchar(40) NOT NULL,
+  "description" text,
+  "is_current" tinyint NOT NULL DEFAULT 1,
+  "canonical_transcript_id" integer NOT NULL,
+  "stable_id" varchar(128),
+  "version" smallint,
+  "created_date" datetime,
+  "modified_date" datetime
 );
 
 --
--- Table: gene_archive
+-- Table: "gene_archive"
 --
-CREATE TABLE gene_archive (
-  gene_stable_id varchar(128) NOT NULL DEFAULT '',
-  gene_version smallint NOT NULL DEFAULT 0,
-  transcript_stable_id varchar(128) NOT NULL DEFAULT '',
-  transcript_version smallint NOT NULL DEFAULT 0,
-  translation_stable_id varchar(128) NOT NULL DEFAULT '',
-  translation_version smallint NOT NULL DEFAULT 0,
-  peptide_archive_id integer NOT NULL DEFAULT 0,
-  mapping_session_id integer NOT NULL DEFAULT 0
+CREATE TABLE "gene_archive" (
+  "gene_stable_id" varchar(128) NOT NULL DEFAULT '',
+  "gene_version" smallint NOT NULL DEFAULT 0,
+  "transcript_stable_id" varchar(128) NOT NULL DEFAULT '',
+  "transcript_version" smallint NOT NULL DEFAULT 0,
+  "translation_stable_id" varchar(128) NOT NULL DEFAULT '',
+  "translation_version" smallint NOT NULL DEFAULT 0,
+  "peptide_archive_id" integer NOT NULL DEFAULT 0,
+  "mapping_session_id" integer NOT NULL DEFAULT 0
 );
 
 --
--- Table: gene_attrib
+-- Table: "gene_attrib"
 --
-CREATE TABLE gene_attrib (
-  gene_id integer NOT NULL DEFAULT 0,
-  attrib_type_id smallint NOT NULL DEFAULT 0,
-  value text NOT NULL
+CREATE TABLE "gene_attrib" (
+  "gene_id" integer NOT NULL DEFAULT 0,
+  "attrib_type_id" smallint NOT NULL DEFAULT 0,
+  "value" text NOT NULL
 );
 
-CREATE UNIQUE INDEX gene_attribx ON gene_attrib (gene_id, attrib_type_id, value);
+CREATE UNIQUE INDEX "gene_attribx" ON "gene_attrib" ("gene_id", "attrib_type_id", "value");
 
 --
--- Table: genome_statistics
+-- Table: "genome_statistics"
 --
-CREATE TABLE genome_statistics (
-  genome_statistics_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  statistic varchar(128) NOT NULL,
-  value bigint NOT NULL DEFAULT 0,
-  species_id integer DEFAULT 1,
-  attrib_type_id integer,
-  timestamp datetime
+CREATE TABLE "genome_statistics" (
+  "genome_statistics_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "statistic" varchar(128) NOT NULL,
+  "value" bigint NOT NULL DEFAULT 0,
+  "species_id" integer DEFAULT 1,
+  "attrib_type_id" integer,
+  "timestamp" datetime
 );
 
-CREATE UNIQUE INDEX stats_uniq ON genome_statistics (statistic, attrib_type_id, species_id);
+CREATE UNIQUE INDEX "stats_uniq" ON "genome_statistics" ("statistic", "attrib_type_id", "species_id");
 
 --
--- Table: identity_xref
+-- Table: "identity_xref"
 --
-CREATE TABLE identity_xref (
-  object_xref_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL DEFAULT 0,
-  xref_identity integer,
-  ensembl_identity integer,
-  xref_start integer,
-  xref_end integer,
-  ensembl_start integer,
-  ensembl_end integer,
-  cigar_line text,
-  score double precision,
-  evalue double precision
+CREATE TABLE "identity_xref" (
+  "object_xref_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL DEFAULT 0,
+  "xref_identity" integer,
+  "ensembl_identity" integer,
+  "xref_start" integer,
+  "xref_end" integer,
+  "ensembl_start" integer,
+  "ensembl_end" integer,
+  "cigar_line" text,
+  "score" double precision,
+  "evalue" double precision
 );
 
 --
--- Table: interpro
+-- Table: "interpro"
 --
-CREATE TABLE interpro (
-  interpro_ac varchar(40) NOT NULL DEFAULT '',
-  id varchar(40) NOT NULL
+CREATE TABLE "interpro" (
+  "interpro_ac" varchar(40) NOT NULL DEFAULT '',
+  "id" varchar(40) NOT NULL
 );
 
-CREATE UNIQUE INDEX accession_idx ON interpro (interpro_ac, id);
+CREATE UNIQUE INDEX "accession_idx" ON "interpro" ("interpro_ac", "id");
 
 --
--- Table: intron_supporting_evidence
+-- Table: "intron_supporting_evidence"
 --
-CREATE TABLE intron_supporting_evidence (
-  intron_supporting_evidence_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  analysis_id smallint NOT NULL,
-  seq_region_id integer NOT NULL,
-  seq_region_start integer NOT NULL,
-  seq_region_end integer NOT NULL,
-  seq_region_strand tinyint NOT NULL,
-  hit_name varchar(100) NOT NULL,
-  score decimal(10,3),
-  score_type enum DEFAULT 'NONE',
-  is_splice_canonical tinyint NOT NULL DEFAULT 0
+CREATE TABLE "intron_supporting_evidence" (
+  "intron_supporting_evidence_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "analysis_id" smallint NOT NULL,
+  "seq_region_id" integer NOT NULL,
+  "seq_region_start" integer NOT NULL,
+  "seq_region_end" integer NOT NULL,
+  "seq_region_strand" tinyint NOT NULL,
+  "hit_name" varchar(100) NOT NULL,
+  "score" decimal(10,3),
+  "score_type" enum DEFAULT 'NONE',
+  "is_splice_canonical" tinyint NOT NULL DEFAULT 0
 );
 
-CREATE UNIQUE INDEX analysis_id02 ON intron_supporting_evidence (analysis_id, seq_region_id, seq_region_start, seq_region_end, seq_region_strand, hit_name);
+CREATE UNIQUE INDEX "analysis_id02" ON "intron_supporting_evidence" ("analysis_id", "seq_region_id", "seq_region_start", "seq_region_end", "seq_region_strand", "hit_name");
 
 --
--- Table: karyotype
+-- Table: "karyotype"
 --
-CREATE TABLE karyotype (
-  karyotype_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  band varchar(40),
-  stain varchar(40)
+CREATE TABLE "karyotype" (
+  "karyotype_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "band" varchar(40),
+  "stain" varchar(40)
 );
 
 --
--- Table: map
+-- Table: "map"
 --
-CREATE TABLE map (
-  map_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  map_name varchar(30) NOT NULL DEFAULT ''
+CREATE TABLE "map" (
+  "map_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "map_name" varchar(30) NOT NULL DEFAULT ''
 );
 
 --
--- Table: mapping_session
+-- Table: "mapping_session"
 --
-CREATE TABLE mapping_session (
-  mapping_session_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  old_db_name varchar(80) NOT NULL DEFAULT '',
-  new_db_name varchar(80) NOT NULL DEFAULT '',
-  old_release varchar(5) NOT NULL DEFAULT '',
-  new_release varchar(5) NOT NULL DEFAULT '',
-  old_assembly varchar(20) NOT NULL DEFAULT '',
-  new_assembly varchar(20) NOT NULL DEFAULT '',
-  created datetime
+CREATE TABLE "mapping_session" (
+  "mapping_session_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "old_db_name" varchar(80) NOT NULL DEFAULT '',
+  "new_db_name" varchar(80) NOT NULL DEFAULT '',
+  "old_release" varchar(5) NOT NULL DEFAULT '',
+  "new_release" varchar(5) NOT NULL DEFAULT '',
+  "old_assembly" varchar(20) NOT NULL DEFAULT '',
+  "new_assembly" varchar(20) NOT NULL DEFAULT '',
+  "created" datetime
 );
 
 --
--- Table: mapping_set
+-- Table: "mapping_set"
 --
-CREATE TABLE mapping_set (
-  mapping_set_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  internal_schema_build varchar(20) NOT NULL,
-  external_schema_build varchar(20) NOT NULL
+CREATE TABLE "mapping_set" (
+  "mapping_set_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "internal_schema_build" varchar(20) NOT NULL,
+  "external_schema_build" varchar(20) NOT NULL
 );
 
-CREATE UNIQUE INDEX mapping_idx ON mapping_set (internal_schema_build, external_schema_build);
+CREATE UNIQUE INDEX "mapping_idx" ON "mapping_set" ("internal_schema_build", "external_schema_build");
 
 --
--- Table: marker
+-- Table: "marker"
 --
-CREATE TABLE marker (
-  marker_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  display_marker_synonym_id integer,
-  left_primer varchar(100) NOT NULL DEFAULT '',
-  right_primer varchar(100) NOT NULL DEFAULT '',
-  min_primer_dist integer NOT NULL DEFAULT 0,
-  max_primer_dist integer NOT NULL DEFAULT 0,
-  priority integer,
-  type enum
+CREATE TABLE "marker" (
+  "marker_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "display_marker_synonym_id" integer,
+  "left_primer" varchar(100) NOT NULL DEFAULT '',
+  "right_primer" varchar(100) NOT NULL DEFAULT '',
+  "min_primer_dist" integer NOT NULL DEFAULT 0,
+  "max_primer_dist" integer NOT NULL DEFAULT 0,
+  "priority" integer,
+  "type" enum
 );
 
 --
--- Table: marker_feature
+-- Table: "marker_feature"
 --
-CREATE TABLE marker_feature (
-  marker_feature_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  marker_id integer NOT NULL DEFAULT 0,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  analysis_id integer NOT NULL DEFAULT 0,
-  map_weight integer
+CREATE TABLE "marker_feature" (
+  "marker_feature_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "marker_id" integer NOT NULL DEFAULT 0,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "analysis_id" integer NOT NULL DEFAULT 0,
+  "map_weight" integer
 );
 
 --
--- Table: marker_map_location
+-- Table: "marker_map_location"
 --
-CREATE TABLE marker_map_location (
-  marker_id integer NOT NULL DEFAULT 0,
-  map_id integer NOT NULL DEFAULT 0,
-  chromosome_name varchar(15) NOT NULL DEFAULT '',
-  marker_synonym_id integer NOT NULL DEFAULT 0,
-  position varchar(15) NOT NULL DEFAULT '',
-  lod_score double precision,
-  PRIMARY KEY (marker_id, map_id)
+CREATE TABLE "marker_map_location" (
+  "marker_id" integer NOT NULL DEFAULT 0,
+  "map_id" integer NOT NULL DEFAULT 0,
+  "chromosome_name" varchar(15) NOT NULL DEFAULT '',
+  "marker_synonym_id" integer NOT NULL DEFAULT 0,
+  "position" varchar(15) NOT NULL DEFAULT '',
+  "lod_score" double precision,
+  PRIMARY KEY ("marker_id", "map_id")
 );
 
 --
--- Table: marker_synonym
+-- Table: "marker_synonym"
 --
-CREATE TABLE marker_synonym (
-  marker_synonym_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  marker_id integer NOT NULL DEFAULT 0,
-  source varchar(20),
-  name varchar(30)
+CREATE TABLE "marker_synonym" (
+  "marker_synonym_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "marker_id" integer NOT NULL DEFAULT 0,
+  "source" varchar(20),
+  "name" varchar(30)
 );
 
 --
--- Table: meta
+-- Table: "meta"
 --
-CREATE TABLE meta (
-  meta_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  species_id integer DEFAULT 1,
-  meta_key varchar(40) NOT NULL,
-  meta_value varchar(255) NOT NULL
+CREATE TABLE "meta" (
+  "meta_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "species_id" integer DEFAULT 1,
+  "meta_key" varchar(40) NOT NULL,
+  "meta_value" varchar(255) NOT NULL
 );
 
-CREATE UNIQUE INDEX species_key_value_idx ON meta (species_id, meta_key, meta_value);
+CREATE UNIQUE INDEX "species_key_value_idx" ON "meta" ("species_id", "meta_key", "meta_value");
 
 --
--- Table: meta_coord
+-- Table: "meta_coord"
 --
-CREATE TABLE meta_coord (
-  table_name varchar(40) NOT NULL DEFAULT '',
-  coord_system_id integer NOT NULL DEFAULT 0,
-  max_length integer
+CREATE TABLE "meta_coord" (
+  "table_name" varchar(40) NOT NULL DEFAULT '',
+  "coord_system_id" integer NOT NULL DEFAULT 0,
+  "max_length" integer
 );
 
-CREATE UNIQUE INDEX cs_table_name_idx ON meta_coord (coord_system_id, table_name);
+CREATE UNIQUE INDEX "cs_table_name_idx" ON "meta_coord" ("coord_system_id", "table_name");
 
 --
--- Table: misc_attrib
+-- Table: "misc_attrib"
 --
-CREATE TABLE misc_attrib (
-  misc_feature_id integer NOT NULL DEFAULT 0,
-  attrib_type_id smallint NOT NULL DEFAULT 0,
-  value text NOT NULL
+CREATE TABLE "misc_attrib" (
+  "misc_feature_id" integer NOT NULL DEFAULT 0,
+  "attrib_type_id" smallint NOT NULL DEFAULT 0,
+  "value" text NOT NULL
 );
 
-CREATE UNIQUE INDEX misc_attribx ON misc_attrib (misc_feature_id, attrib_type_id, value);
+CREATE UNIQUE INDEX "misc_attribx" ON "misc_attrib" ("misc_feature_id", "attrib_type_id", "value");
 
 --
--- Table: misc_feature
+-- Table: "misc_feature"
 --
-CREATE TABLE misc_feature (
-  misc_feature_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  seq_region_strand tinyint NOT NULL DEFAULT 0
+CREATE TABLE "misc_feature" (
+  "misc_feature_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "seq_region_strand" tinyint NOT NULL DEFAULT 0
 );
 
 --
--- Table: misc_feature_misc_set
+-- Table: "misc_feature_misc_set"
 --
-CREATE TABLE misc_feature_misc_set (
-  misc_feature_id integer NOT NULL DEFAULT 0,
-  misc_set_id smallint NOT NULL DEFAULT 0,
-  PRIMARY KEY (misc_feature_id, misc_set_id)
+CREATE TABLE "misc_feature_misc_set" (
+  "misc_feature_id" integer NOT NULL DEFAULT 0,
+  "misc_set_id" smallint NOT NULL DEFAULT 0,
+  PRIMARY KEY ("misc_feature_id", "misc_set_id")
 );
 
 --
--- Table: misc_set
+-- Table: "misc_set"
 --
-CREATE TABLE misc_set (
-  misc_set_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  code varchar(25) NOT NULL DEFAULT '',
-  name varchar(255) NOT NULL DEFAULT '',
-  description text NOT NULL,
-  max_length integer NOT NULL DEFAULT 0
+CREATE TABLE "misc_set" (
+  "misc_set_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "code" varchar(25) NOT NULL DEFAULT '',
+  "name" varchar(255) NOT NULL DEFAULT '',
+  "description" text NOT NULL,
+  "max_length" integer NOT NULL DEFAULT 0
 );
 
-CREATE UNIQUE INDEX code_idx02 ON misc_set (code);
+CREATE UNIQUE INDEX "code_idx02" ON "misc_set" ("code");
 
 --
--- Table: object_xref
+-- Table: "object_xref"
 --
-CREATE TABLE object_xref (
-  object_xref_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  ensembl_id integer NOT NULL DEFAULT 0,
-  ensembl_object_type enum NOT NULL DEFAULT 'RawContig',
-  xref_id integer NOT NULL,
-  linkage_annotation varchar(255),
-  analysis_id smallint
+CREATE TABLE "object_xref" (
+  "object_xref_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "ensembl_id" integer NOT NULL DEFAULT 0,
+  "ensembl_object_type" enum NOT NULL DEFAULT 'RawContig',
+  "xref_id" integer NOT NULL,
+  "linkage_annotation" varchar(255),
+  "analysis_id" smallint
 );
 
-CREATE UNIQUE INDEX xref_idx ON object_xref (xref_id, ensembl_object_type, ensembl_id, analysis_id);
+CREATE UNIQUE INDEX "xref_idx" ON "object_xref" ("xref_id", "ensembl_object_type", "ensembl_id", "analysis_id");
 
 --
--- Table: ontology_xref
+-- Table: "ontology_xref"
 --
-CREATE TABLE ontology_xref (
-  object_xref_id integer NOT NULL DEFAULT 0,
-  linkage_type varchar(3),
-  source_xref_id integer
+CREATE TABLE "ontology_xref" (
+  "object_xref_id" integer NOT NULL DEFAULT 0,
+  "linkage_type" varchar(3),
+  "source_xref_id" integer
 );
 
-CREATE UNIQUE INDEX object_source_type_idx ON ontology_xref (object_xref_id, source_xref_id, linkage_type);
+CREATE UNIQUE INDEX "object_source_type_idx" ON "ontology_xref" ("object_xref_id", "source_xref_id", "linkage_type");
 
 --
--- Table: operon
+-- Table: "operon"
 --
-CREATE TABLE operon (
-  operon_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL,
-  seq_region_start integer NOT NULL,
-  seq_region_end integer NOT NULL,
-  seq_region_strand tinyint NOT NULL,
-  display_label varchar(255),
-  analysis_id smallint NOT NULL,
-  stable_id varchar(128),
-  version smallint,
-  created_date datetime,
-  modified_date datetime
+CREATE TABLE "operon" (
+  "operon_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL,
+  "seq_region_start" integer NOT NULL,
+  "seq_region_end" integer NOT NULL,
+  "seq_region_strand" tinyint NOT NULL,
+  "display_label" varchar(255),
+  "analysis_id" smallint NOT NULL,
+  "stable_id" varchar(128),
+  "version" smallint,
+  "created_date" datetime,
+  "modified_date" datetime
 );
 
 --
--- Table: operon_transcript
+-- Table: "operon_transcript"
 --
-CREATE TABLE operon_transcript (
-  operon_transcript_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL,
-  seq_region_start integer NOT NULL,
-  seq_region_end integer NOT NULL,
-  seq_region_strand tinyint NOT NULL,
-  operon_id integer NOT NULL,
-  display_label varchar(255),
-  analysis_id smallint NOT NULL,
-  stable_id varchar(128),
-  version smallint,
-  created_date datetime,
-  modified_date datetime
+CREATE TABLE "operon_transcript" (
+  "operon_transcript_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL,
+  "seq_region_start" integer NOT NULL,
+  "seq_region_end" integer NOT NULL,
+  "seq_region_strand" tinyint NOT NULL,
+  "operon_id" integer NOT NULL,
+  "display_label" varchar(255),
+  "analysis_id" smallint NOT NULL,
+  "stable_id" varchar(128),
+  "version" smallint,
+  "created_date" datetime,
+  "modified_date" datetime
 );
 
 --
--- Table: operon_transcript_gene
+-- Table: "operon_transcript_gene"
 --
-CREATE TABLE operon_transcript_gene (
-  operon_transcript_id integer,
-  gene_id integer
+CREATE TABLE "operon_transcript_gene" (
+  "operon_transcript_id" integer,
+  "gene_id" integer
 );
 
 --
--- Table: peptide_archive
+-- Table: "peptide_archive"
 --
-CREATE TABLE peptide_archive (
-  peptide_archive_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  md5_checksum varchar(32),
-  peptide_seq mediumtext NOT NULL
+CREATE TABLE "peptide_archive" (
+  "peptide_archive_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "md5_checksum" varchar(32),
+  "peptide_seq" mediumtext NOT NULL
 );
 
 --
--- Table: prediction_exon
+-- Table: "prediction_exon"
 --
-CREATE TABLE prediction_exon (
-  prediction_exon_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  prediction_transcript_id integer NOT NULL DEFAULT 0,
-  exon_rank smallint NOT NULL DEFAULT 0,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  seq_region_strand tinyint NOT NULL DEFAULT 0,
-  start_phase tinyint NOT NULL DEFAULT 0,
-  score double precision,
-  p_value double precision
+CREATE TABLE "prediction_exon" (
+  "prediction_exon_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "prediction_transcript_id" integer NOT NULL DEFAULT 0,
+  "exon_rank" smallint NOT NULL DEFAULT 0,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "seq_region_strand" tinyint NOT NULL DEFAULT 0,
+  "start_phase" tinyint NOT NULL DEFAULT 0,
+  "score" double precision,
+  "p_value" double precision
 );
 
 --
--- Table: prediction_transcript
+-- Table: "prediction_transcript"
 --
-CREATE TABLE prediction_transcript (
-  prediction_transcript_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  seq_region_strand tinyint NOT NULL DEFAULT 0,
-  analysis_id integer,
-  display_label varchar(255)
+CREATE TABLE "prediction_transcript" (
+  "prediction_transcript_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "seq_region_strand" tinyint NOT NULL DEFAULT 0,
+  "analysis_id" integer,
+  "display_label" varchar(255)
 );
 
 --
--- Table: protein_align_feature
+-- Table: "protein_align_feature"
 --
-CREATE TABLE protein_align_feature (
-  protein_align_feature_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  seq_region_strand tinyint NOT NULL DEFAULT 1,
-  hit_start integer NOT NULL DEFAULT 0,
-  hit_end integer NOT NULL DEFAULT 0,
-  hit_name varchar(40) NOT NULL DEFAULT '',
-  analysis_id integer NOT NULL DEFAULT 0,
-  score double precision,
-  evalue double precision,
-  perc_ident float,
-  cigar_line text,
-  external_db_id smallint,
-  hcoverage double precision,
-  align_type enum DEFAULT 'ensembl'
+CREATE TABLE "protein_align_feature" (
+  "protein_align_feature_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "seq_region_strand" tinyint NOT NULL DEFAULT 1,
+  "hit_start" integer NOT NULL DEFAULT 0,
+  "hit_end" integer NOT NULL DEFAULT 0,
+  "hit_name" varchar(40) NOT NULL DEFAULT '',
+  "analysis_id" integer NOT NULL DEFAULT 0,
+  "score" double precision,
+  "evalue" double precision,
+  "perc_ident" float,
+  "cigar_line" text,
+  "external_db_id" smallint,
+  "hcoverage" double precision,
+  "align_type" enum DEFAULT 'ensembl'
 );
 
 --
--- Table: protein_feature
+-- Table: "protein_feature"
 --
-CREATE TABLE protein_feature (
-  protein_feature_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  translation_id integer NOT NULL DEFAULT 0,
-  seq_start integer NOT NULL DEFAULT 0,
-  seq_end integer NOT NULL DEFAULT 0,
-  hit_start integer NOT NULL DEFAULT 0,
-  hit_end integer NOT NULL DEFAULT 0,
-  hit_name varchar(40) NOT NULL,
-  analysis_id integer NOT NULL DEFAULT 0,
-  score double precision NOT NULL DEFAULT 0,
-  evalue double precision,
-  perc_ident float,
-  external_data text,
-  hit_description text,
-  cigar_line text,
-  align_type enum
+CREATE TABLE "protein_feature" (
+  "protein_feature_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "translation_id" integer NOT NULL DEFAULT 0,
+  "seq_start" integer NOT NULL DEFAULT 0,
+  "seq_end" integer NOT NULL DEFAULT 0,
+  "hit_start" integer NOT NULL DEFAULT 0,
+  "hit_end" integer NOT NULL DEFAULT 0,
+  "hit_name" varchar(40) NOT NULL,
+  "analysis_id" integer NOT NULL DEFAULT 0,
+  "score" double precision NOT NULL DEFAULT 0,
+  "evalue" double precision,
+  "perc_ident" float,
+  "external_data" text,
+  "hit_description" text,
+  "cigar_line" text,
+  "align_type" enum
 );
 
-CREATE UNIQUE INDEX aln_idx ON protein_feature (translation_id, hit_name, seq_start, seq_end, hit_start, hit_end, analysis_id);
+CREATE UNIQUE INDEX "aln_idx" ON "protein_feature" ("translation_id", "hit_name", "seq_start", "seq_end", "hit_start", "hit_end", "analysis_id");
 
 --
--- Table: repeat_consensus
+-- Table: "repeat_consensus"
 --
-CREATE TABLE repeat_consensus (
-  repeat_consensus_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  repeat_name varchar(255) NOT NULL DEFAULT '',
-  repeat_class varchar(100) NOT NULL DEFAULT '',
-  repeat_type varchar(40) NOT NULL DEFAULT '',
-  repeat_consensus text
+CREATE TABLE "repeat_consensus" (
+  "repeat_consensus_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "repeat_name" varchar(255) NOT NULL DEFAULT '',
+  "repeat_class" varchar(100) NOT NULL DEFAULT '',
+  "repeat_type" varchar(40) NOT NULL DEFAULT '',
+  "repeat_consensus" text
 );
 
 --
--- Table: repeat_feature
+-- Table: "repeat_feature"
 --
-CREATE TABLE repeat_feature (
-  repeat_feature_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  seq_region_strand tinyint NOT NULL DEFAULT 1,
-  repeat_start integer NOT NULL DEFAULT 0,
-  repeat_end integer NOT NULL DEFAULT 0,
-  repeat_consensus_id integer NOT NULL DEFAULT 0,
-  analysis_id integer NOT NULL DEFAULT 0,
-  score double precision
+CREATE TABLE "repeat_feature" (
+  "repeat_feature_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "seq_region_strand" tinyint NOT NULL DEFAULT 1,
+  "repeat_start" integer NOT NULL DEFAULT 0,
+  "repeat_end" integer NOT NULL DEFAULT 0,
+  "repeat_consensus_id" integer NOT NULL DEFAULT 0,
+  "analysis_id" integer NOT NULL DEFAULT 0,
+  "score" double precision
 );
 
 --
--- Table: seq_region
+-- Table: "seq_region"
 --
-CREATE TABLE seq_region (
-  seq_region_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  name varchar(255) NOT NULL,
-  coord_system_id integer NOT NULL DEFAULT 0,
-  length integer NOT NULL DEFAULT 0
+CREATE TABLE "seq_region" (
+  "seq_region_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "name" varchar(255) NOT NULL,
+  "coord_system_id" integer NOT NULL DEFAULT 0,
+  "length" integer NOT NULL DEFAULT 0
 );
 
-CREATE UNIQUE INDEX name_cs_idx ON seq_region (name, coord_system_id);
+CREATE UNIQUE INDEX "name_cs_idx" ON "seq_region" ("name", "coord_system_id");
 
 --
--- Table: seq_region_attrib
+-- Table: "seq_region_attrib"
 --
-CREATE TABLE seq_region_attrib (
-  seq_region_id integer NOT NULL DEFAULT 0,
-  attrib_type_id smallint NOT NULL DEFAULT 0,
-  value text NOT NULL
+CREATE TABLE "seq_region_attrib" (
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "attrib_type_id" smallint NOT NULL DEFAULT 0,
+  "value" text NOT NULL
 );
 
-CREATE UNIQUE INDEX region_attribx ON seq_region_attrib (seq_region_id, attrib_type_id, value);
+CREATE UNIQUE INDEX "region_attribx" ON "seq_region_attrib" ("seq_region_id", "attrib_type_id", "value");
 
 --
--- Table: seq_region_mapping
+-- Table: "seq_region_mapping"
 --
-CREATE TABLE seq_region_mapping (
-  external_seq_region_id integer NOT NULL,
-  internal_seq_region_id integer NOT NULL,
-  mapping_set_id integer NOT NULL
+CREATE TABLE "seq_region_mapping" (
+  "external_seq_region_id" integer NOT NULL,
+  "internal_seq_region_id" integer NOT NULL,
+  "mapping_set_id" integer NOT NULL
 );
 
 --
--- Table: seq_region_synonym
+-- Table: "seq_region_synonym"
 --
-CREATE TABLE seq_region_synonym (
-  seq_region_synonym_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL,
-  synonym varchar(250) NOT NULL,
-  external_db_id smallint
+CREATE TABLE "seq_region_synonym" (
+  "seq_region_synonym_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL,
+  "synonym" varchar(250) NOT NULL,
+  "external_db_id" smallint
 );
 
-CREATE UNIQUE INDEX syn_idx ON seq_region_synonym (synonym, seq_region_id);
+CREATE UNIQUE INDEX "syn_idx" ON "seq_region_synonym" ("synonym", "seq_region_id");
 
 --
--- Table: simple_feature
+-- Table: "simple_feature"
 --
-CREATE TABLE simple_feature (
-  simple_feature_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  seq_region_strand tinyint NOT NULL DEFAULT 0,
-  display_label varchar(40) NOT NULL DEFAULT '',
-  analysis_id integer NOT NULL DEFAULT 0,
-  score double precision
+CREATE TABLE "simple_feature" (
+  "simple_feature_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "seq_region_strand" tinyint NOT NULL DEFAULT 0,
+  "display_label" varchar(40) NOT NULL DEFAULT '',
+  "analysis_id" integer NOT NULL DEFAULT 0,
+  "score" double precision
 );
 
 --
--- Table: stable_id_event
+-- Table: "stable_id_event"
 --
-CREATE TABLE stable_id_event (
-  old_stable_id varchar(128),
-  old_version smallint,
-  new_stable_id varchar(128),
-  new_version smallint,
-  mapping_session_id integer NOT NULL DEFAULT 0,
-  type enum NOT NULL DEFAULT 'gene',
-  score float NOT NULL DEFAULT 0
+CREATE TABLE "stable_id_event" (
+  "old_stable_id" varchar(128),
+  "old_version" smallint,
+  "new_stable_id" varchar(128),
+  "new_version" smallint,
+  "mapping_session_id" integer NOT NULL DEFAULT 0,
+  "type" enum NOT NULL DEFAULT 'gene',
+  "score" float NOT NULL DEFAULT 0
 );
 
-CREATE UNIQUE INDEX uni_idx ON stable_id_event (mapping_session_id, old_stable_id, old_version, new_stable_id, new_version, type);
+CREATE UNIQUE INDEX "uni_idx" ON "stable_id_event" ("mapping_session_id", "old_stable_id", "old_version", "new_stable_id", "new_version", "type");
 
 --
--- Table: supporting_feature
+-- Table: "supporting_feature"
 --
-CREATE TABLE supporting_feature (
-  exon_id integer NOT NULL DEFAULT 0,
-  feature_type enum,
-  feature_id integer NOT NULL DEFAULT 0
+CREATE TABLE "supporting_feature" (
+  "exon_id" integer NOT NULL DEFAULT 0,
+  "feature_type" enum,
+  "feature_id" integer NOT NULL DEFAULT 0
 );
 
-CREATE UNIQUE INDEX all_idx02 ON supporting_feature (exon_id, feature_type, feature_id);
+CREATE UNIQUE INDEX "all_idx02" ON "supporting_feature" ("exon_id", "feature_type", "feature_id");
 
 --
--- Table: transcript
+-- Table: "transcript"
 --
-CREATE TABLE transcript (
-  transcript_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  gene_id integer,
-  analysis_id smallint NOT NULL,
-  seq_region_id integer NOT NULL,
-  seq_region_start integer NOT NULL,
-  seq_region_end integer NOT NULL,
-  seq_region_strand tinyint NOT NULL,
-  display_xref_id integer,
-  source varchar(40) NOT NULL DEFAULT 'ensembl',
-  biotype varchar(40) NOT NULL,
-  description text,
-  is_current tinyint NOT NULL DEFAULT 1,
-  canonical_translation_id integer,
-  stable_id varchar(128),
-  version smallint,
-  created_date datetime,
-  modified_date datetime
+CREATE TABLE "transcript" (
+  "transcript_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "gene_id" integer,
+  "analysis_id" smallint NOT NULL,
+  "seq_region_id" integer NOT NULL,
+  "seq_region_start" integer NOT NULL,
+  "seq_region_end" integer NOT NULL,
+  "seq_region_strand" tinyint NOT NULL,
+  "display_xref_id" integer,
+  "source" varchar(40) NOT NULL DEFAULT 'ensembl',
+  "biotype" varchar(40) NOT NULL,
+  "description" text,
+  "is_current" tinyint NOT NULL DEFAULT 1,
+  "canonical_translation_id" integer,
+  "stable_id" varchar(128),
+  "version" smallint,
+  "created_date" datetime,
+  "modified_date" datetime
 );
 
-CREATE UNIQUE INDEX canonical_translation_idx ON transcript (canonical_translation_id);
+CREATE UNIQUE INDEX "canonical_translation_idx" ON "transcript" ("canonical_translation_id");
 
 --
--- Table: transcript_attrib
+-- Table: "transcript_attrib"
 --
-CREATE TABLE transcript_attrib (
-  transcript_id integer NOT NULL DEFAULT 0,
-  attrib_type_id smallint NOT NULL DEFAULT 0,
-  value text NOT NULL
+CREATE TABLE "transcript_attrib" (
+  "transcript_id" integer NOT NULL DEFAULT 0,
+  "attrib_type_id" smallint NOT NULL DEFAULT 0,
+  "value" text NOT NULL
 );
 
-CREATE UNIQUE INDEX transcript_attribx ON transcript_attrib (transcript_id, attrib_type_id, value);
+CREATE UNIQUE INDEX "transcript_attribx" ON "transcript_attrib" ("transcript_id", "attrib_type_id", "value");
 
 --
--- Table: transcript_intron_supporting_evidence
+-- Table: "transcript_intron_supporting_evidence"
 --
-CREATE TABLE transcript_intron_supporting_evidence (
-  transcript_id integer NOT NULL,
-  intron_supporting_evidence_id integer NOT NULL,
-  previous_exon_id integer NOT NULL,
-  next_exon_id integer NOT NULL,
-  PRIMARY KEY (intron_supporting_evidence_id, transcript_id)
+CREATE TABLE "transcript_intron_supporting_evidence" (
+  "transcript_id" integer NOT NULL,
+  "intron_supporting_evidence_id" integer NOT NULL,
+  "previous_exon_id" integer NOT NULL,
+  "next_exon_id" integer NOT NULL,
+  PRIMARY KEY ("intron_supporting_evidence_id", "transcript_id")
 );
 
 --
--- Table: transcript_supporting_feature
+-- Table: "transcript_supporting_feature"
 --
-CREATE TABLE transcript_supporting_feature (
-  transcript_id integer NOT NULL DEFAULT 0,
-  feature_type enum,
-  feature_id integer NOT NULL DEFAULT 0
+CREATE TABLE "transcript_supporting_feature" (
+  "transcript_id" integer NOT NULL DEFAULT 0,
+  "feature_type" enum,
+  "feature_id" integer NOT NULL DEFAULT 0
 );
 
-CREATE UNIQUE INDEX all_idx03 ON transcript_supporting_feature (transcript_id, feature_type, feature_id);
+CREATE UNIQUE INDEX "all_idx03" ON "transcript_supporting_feature" ("transcript_id", "feature_type", "feature_id");
 
 --
--- Table: translation
+-- Table: "translation"
 --
-CREATE TABLE translation (
-  translation_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  transcript_id integer NOT NULL,
-  seq_start integer NOT NULL,
-  start_exon_id integer NOT NULL,
-  seq_end integer NOT NULL,
-  end_exon_id integer NOT NULL,
-  stable_id varchar(128),
-  version smallint,
-  created_date datetime,
-  modified_date datetime
+CREATE TABLE "translation" (
+  "translation_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "transcript_id" integer NOT NULL,
+  "seq_start" integer NOT NULL,
+  "start_exon_id" integer NOT NULL,
+  "seq_end" integer NOT NULL,
+  "end_exon_id" integer NOT NULL,
+  "stable_id" varchar(128),
+  "version" smallint,
+  "created_date" datetime,
+  "modified_date" datetime
 );
 
 --
--- Table: translation_attrib
+-- Table: "translation_attrib"
 --
-CREATE TABLE translation_attrib (
-  translation_id integer NOT NULL DEFAULT 0,
-  attrib_type_id smallint NOT NULL DEFAULT 0,
-  value text NOT NULL
+CREATE TABLE "translation_attrib" (
+  "translation_id" integer NOT NULL DEFAULT 0,
+  "attrib_type_id" smallint NOT NULL DEFAULT 0,
+  "value" text NOT NULL
 );
 
-CREATE UNIQUE INDEX translation_attribx ON translation_attrib (translation_id, attrib_type_id, value);
+CREATE UNIQUE INDEX "translation_attribx" ON "translation_attrib" ("translation_id", "attrib_type_id", "value");
 
 --
--- Table: unmapped_object
+-- Table: "unmapped_object"
 --
-CREATE TABLE unmapped_object (
-  unmapped_object_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  type enum NOT NULL,
-  analysis_id integer NOT NULL,
-  external_db_id integer,
-  identifier varchar(255) NOT NULL,
-  unmapped_reason_id integer NOT NULL,
-  query_score double precision,
-  target_score double precision,
-  ensembl_id integer DEFAULT 0,
-  ensembl_object_type enum DEFAULT 'RawContig',
-  parent varchar(255)
+CREATE TABLE "unmapped_object" (
+  "unmapped_object_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "type" enum NOT NULL,
+  "analysis_id" integer NOT NULL,
+  "external_db_id" integer,
+  "identifier" varchar(255) NOT NULL,
+  "unmapped_reason_id" integer NOT NULL,
+  "query_score" double precision,
+  "target_score" double precision,
+  "ensembl_id" integer DEFAULT 0,
+  "ensembl_object_type" enum DEFAULT 'RawContig',
+  "parent" varchar(255)
 );
 
-CREATE UNIQUE INDEX unique_unmapped_obj_idx ON unmapped_object (ensembl_id, ensembl_object_type, identifier, unmapped_reason_id, parent, external_db_id);
+CREATE UNIQUE INDEX "unique_unmapped_obj_idx" ON "unmapped_object" ("ensembl_id", "ensembl_object_type", "identifier", "unmapped_reason_id", "parent", "external_db_id");
 
 --
--- Table: unmapped_reason
+-- Table: "unmapped_reason"
 --
-CREATE TABLE unmapped_reason (
-  unmapped_reason_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  summary_description varchar(255),
-  full_description varchar(255)
+CREATE TABLE "unmapped_reason" (
+  "unmapped_reason_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "summary_description" varchar(255),
+  "full_description" varchar(255)
 );
 
 --
--- Table: xref
+-- Table: "xref"
 --
-CREATE TABLE xref (
-  xref_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  external_db_id integer NOT NULL,
-  dbprimary_acc varchar(512) NOT NULL,
-  display_label varchar(512) NOT NULL,
-  version varchar(10),
-  description text,
-  info_type enum NOT NULL DEFAULT 'NONE',
-  info_text varchar(255) NOT NULL DEFAULT ''
+CREATE TABLE "xref" (
+  "xref_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "external_db_id" integer NOT NULL,
+  "dbprimary_acc" varchar(512) NOT NULL,
+  "display_label" varchar(512) NOT NULL,
+  "version" varchar(10),
+  "description" text,
+  "info_type" enum NOT NULL DEFAULT 'NONE',
+  "info_text" varchar(255) NOT NULL DEFAULT ''
 );
 
-CREATE UNIQUE INDEX id_index ON xref (dbprimary_acc, external_db_id, info_type, info_text, version);
+CREATE UNIQUE INDEX "id_index" ON "xref" ("dbprimary_acc", "external_db_id", "info_type", "info_text", "version");
 
 COMMIT;
diff --git a/modules/t/test-genome-DBs/nameless/core/SQLite/table.sql b/modules/t/test-genome-DBs/nameless/core/SQLite/table.sql
index d8d8a3153802ead21bdada2845f156a2f84668ff..1509d5129f8101a6249f83ef8a233e822530f5fb 100644
--- a/modules/t/test-genome-DBs/nameless/core/SQLite/table.sql
+++ b/modules/t/test-genome-DBs/nameless/core/SQLite/table.sql
@@ -1,991 +1,991 @@
 -- 
 -- Created by SQL::Translator::Producer::SQLite
--- Created on Thu Jun 28 16:51:58 2018
+-- Created on Wed Sep 26 12:07:20 2018
 -- 
 
 BEGIN TRANSACTION;
 
 --
--- Table: alt_allele
+-- Table: "alt_allele"
 --
-CREATE TABLE alt_allele (
-  alt_allele_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  alt_allele_group_id integer NOT NULL,
-  gene_id integer NOT NULL
+CREATE TABLE "alt_allele" (
+  "alt_allele_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "alt_allele_group_id" integer NOT NULL,
+  "gene_id" integer NOT NULL
 );
 
-CREATE UNIQUE INDEX gene_idx ON alt_allele (gene_id);
+CREATE UNIQUE INDEX "gene_idx" ON "alt_allele" ("gene_id");
 
 --
--- Table: alt_allele_attrib
+-- Table: "alt_allele_attrib"
 --
-CREATE TABLE alt_allele_attrib (
-  alt_allele_id integer,
-  attrib enum
+CREATE TABLE "alt_allele_attrib" (
+  "alt_allele_id" integer,
+  "attrib" enum
 );
 
 --
--- Table: alt_allele_group
+-- Table: "alt_allele_group"
 --
-CREATE TABLE alt_allele_group (
-  alt_allele_group_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL
+CREATE TABLE "alt_allele_group" (
+  "alt_allele_group_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL
 );
 
 --
--- Table: analysis
+-- Table: "analysis"
 --
-CREATE TABLE analysis (
-  analysis_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  created datetime,
-  logic_name varchar(40) NOT NULL DEFAULT '',
-  db varchar(120),
-  db_version varchar(40),
-  db_file varchar(120),
-  program varchar(80),
-  program_version varchar(40),
-  program_file varchar(80),
-  parameters text,
-  module varchar(80),
-  module_version varchar(40),
-  gff_source varchar(40),
-  gff_feature varchar(40)
+CREATE TABLE "analysis" (
+  "analysis_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "created" datetime,
+  "logic_name" varchar(40) NOT NULL DEFAULT '',
+  "db" varchar(120),
+  "db_version" varchar(40),
+  "db_file" varchar(120),
+  "program" varchar(80),
+  "program_version" varchar(40),
+  "program_file" varchar(80),
+  "parameters" text,
+  "module" varchar(80),
+  "module_version" varchar(40),
+  "gff_source" varchar(40),
+  "gff_feature" varchar(40)
 );
 
-CREATE UNIQUE INDEX logic_name_idx ON analysis (logic_name);
+CREATE UNIQUE INDEX "logic_name_idx" ON "analysis" ("logic_name");
 
 --
--- Table: analysis_description
+-- Table: "analysis_description"
 --
-CREATE TABLE analysis_description (
-  analysis_id integer NOT NULL DEFAULT 0,
-  description text,
-  display_label varchar(255),
-  displayable tinyint NOT NULL DEFAULT 1,
-  web_data text
+CREATE TABLE "analysis_description" (
+  "analysis_id" integer NOT NULL DEFAULT 0,
+  "description" text,
+  "display_label" varchar(255),
+  "displayable" tinyint NOT NULL DEFAULT 1,
+  "web_data" text
 );
 
-CREATE UNIQUE INDEX analysis_idx ON analysis_description (analysis_id);
+CREATE UNIQUE INDEX "analysis_idx" ON "analysis_description" ("analysis_id");
 
 --
--- Table: assembly
+-- Table: "assembly"
 --
-CREATE TABLE assembly (
-  asm_seq_region_id integer NOT NULL DEFAULT 0,
-  cmp_seq_region_id integer NOT NULL DEFAULT 0,
-  asm_start integer NOT NULL DEFAULT 0,
-  asm_end integer NOT NULL DEFAULT 0,
-  cmp_start integer NOT NULL DEFAULT 0,
-  cmp_end integer NOT NULL DEFAULT 0,
-  ori tinyint NOT NULL DEFAULT 0
+CREATE TABLE "assembly" (
+  "asm_seq_region_id" integer NOT NULL DEFAULT 0,
+  "cmp_seq_region_id" integer NOT NULL DEFAULT 0,
+  "asm_start" integer NOT NULL DEFAULT 0,
+  "asm_end" integer NOT NULL DEFAULT 0,
+  "cmp_start" integer NOT NULL DEFAULT 0,
+  "cmp_end" integer NOT NULL DEFAULT 0,
+  "ori" tinyint NOT NULL DEFAULT 0
 );
 
-CREATE UNIQUE INDEX all_idx ON assembly (asm_seq_region_id, cmp_seq_region_id, asm_start, asm_end, cmp_start, cmp_end, ori);
+CREATE UNIQUE INDEX "all_idx" ON "assembly" ("asm_seq_region_id", "cmp_seq_region_id", "asm_start", "asm_end", "cmp_start", "cmp_end", "ori");
 
 --
--- Table: assembly_exception
+-- Table: "assembly_exception"
 --
-CREATE TABLE assembly_exception (
-  assembly_exception_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  exc_type enum NOT NULL DEFAULT 'HAP',
-  exc_seq_region_id integer NOT NULL DEFAULT 0,
-  exc_seq_region_start integer NOT NULL DEFAULT 0,
-  exc_seq_region_end integer NOT NULL DEFAULT 0,
-  ori integer NOT NULL DEFAULT 0
+CREATE TABLE "assembly_exception" (
+  "assembly_exception_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "exc_type" enum NOT NULL DEFAULT 'HAP',
+  "exc_seq_region_id" integer NOT NULL DEFAULT 0,
+  "exc_seq_region_start" integer NOT NULL DEFAULT 0,
+  "exc_seq_region_end" integer NOT NULL DEFAULT 0,
+  "ori" integer NOT NULL DEFAULT 0
 );
 
 --
--- Table: associated_group
+-- Table: "associated_group"
 --
-CREATE TABLE associated_group (
-  associated_group_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  description varchar(128)
+CREATE TABLE "associated_group" (
+  "associated_group_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "description" varchar(128)
 );
 
 --
--- Table: associated_xref
+-- Table: "associated_xref"
 --
-CREATE TABLE associated_xref (
-  associated_xref_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  object_xref_id integer NOT NULL DEFAULT 0,
-  xref_id integer NOT NULL DEFAULT 0,
-  source_xref_id integer,
-  condition_type varchar(128),
-  associated_group_id integer,
-  rank integer DEFAULT 0
+CREATE TABLE "associated_xref" (
+  "associated_xref_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "object_xref_id" integer NOT NULL DEFAULT 0,
+  "xref_id" integer NOT NULL DEFAULT 0,
+  "source_xref_id" integer,
+  "condition_type" varchar(128),
+  "associated_group_id" integer,
+  "rank" integer DEFAULT 0
 );
 
-CREATE UNIQUE INDEX object_associated_source_type_idx ON associated_xref (object_xref_id, xref_id, source_xref_id, condition_type, associated_group_id);
+CREATE UNIQUE INDEX "object_associated_source_type_idx" ON "associated_xref" ("object_xref_id", "xref_id", "source_xref_id", "condition_type", "associated_group_id");
 
 --
--- Table: attrib_type
+-- Table: "attrib_type"
 --
-CREATE TABLE attrib_type (
-  attrib_type_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  code varchar(20) NOT NULL DEFAULT '',
-  name varchar(255) NOT NULL DEFAULT '',
-  description text
+CREATE TABLE "attrib_type" (
+  "attrib_type_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "code" varchar(20) NOT NULL DEFAULT '',
+  "name" varchar(255) NOT NULL DEFAULT '',
+  "description" text
 );
 
-CREATE UNIQUE INDEX code_idx ON attrib_type (code);
+CREATE UNIQUE INDEX "code_idx" ON "attrib_type" ("code");
 
 --
--- Table: biotype
+-- Table: "biotype"
 --
-CREATE TABLE biotype (
-  biotype_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  name varchar(64) NOT NULL,
-  object_type enum NOT NULL DEFAULT 'gene',
-  db_type varchar NOT NULL DEFAULT 'core',
-  attrib_type_id integer,
-  description text,
-  biotype_group enum,
-  so_acc varchar(64)
+CREATE TABLE "biotype" (
+  "biotype_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "name" varchar(64) NOT NULL,
+  "object_type" enum NOT NULL DEFAULT 'gene',
+  "db_type" varchar NOT NULL DEFAULT 'core',
+  "attrib_type_id" integer,
+  "description" text,
+  "biotype_group" enum,
+  "so_acc" varchar(64)
 );
 
-CREATE UNIQUE INDEX name_type_idx ON biotype (name, object_type);
+CREATE UNIQUE INDEX "name_type_idx" ON "biotype" ("name", "object_type");
 
 --
--- Table: coord_system
+-- Table: "coord_system"
 --
-CREATE TABLE coord_system (
-  coord_system_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  species_id integer NOT NULL DEFAULT 1,
-  name varchar(40) NOT NULL,
-  version varchar(255),
-  rank integer NOT NULL,
-  attrib varchar
+CREATE TABLE "coord_system" (
+  "coord_system_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "species_id" integer NOT NULL DEFAULT 1,
+  "name" varchar(40) NOT NULL,
+  "version" varchar(255),
+  "rank" integer NOT NULL,
+  "attrib" varchar
 );
 
-CREATE UNIQUE INDEX name_idx ON coord_system (name, version, species_id);
+CREATE UNIQUE INDEX "name_idx" ON "coord_system" ("name", "version", "species_id");
 
-CREATE UNIQUE INDEX rank_idx ON coord_system (rank, species_id);
+CREATE UNIQUE INDEX "rank_idx" ON "coord_system" ("rank", "species_id");
 
 --
--- Table: data_file
+-- Table: "data_file"
 --
-CREATE TABLE data_file (
-  data_file_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  coord_system_id integer NOT NULL,
-  analysis_id smallint NOT NULL,
-  name varchar(100) NOT NULL,
-  version_lock tinyint NOT NULL DEFAULT 0,
-  absolute tinyint NOT NULL DEFAULT 0,
-  url text,
-  file_type enum
+CREATE TABLE "data_file" (
+  "data_file_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "coord_system_id" integer NOT NULL,
+  "analysis_id" smallint NOT NULL,
+  "name" varchar(100) NOT NULL,
+  "version_lock" tinyint NOT NULL DEFAULT 0,
+  "absolute" tinyint NOT NULL DEFAULT 0,
+  "url" text,
+  "file_type" enum
 );
 
-CREATE UNIQUE INDEX df_unq_idx ON data_file (coord_system_id, analysis_id, name, file_type);
+CREATE UNIQUE INDEX "df_unq_idx" ON "data_file" ("coord_system_id", "analysis_id", "name", "file_type");
 
 --
--- Table: density_feature
+-- Table: "density_feature"
 --
-CREATE TABLE density_feature (
-  density_feature_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  density_type_id integer NOT NULL DEFAULT 0,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  density_value float NOT NULL DEFAULT 0
+CREATE TABLE "density_feature" (
+  "density_feature_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "density_type_id" integer NOT NULL DEFAULT 0,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "density_value" float NOT NULL DEFAULT 0
 );
 
 --
--- Table: density_type
+-- Table: "density_type"
 --
-CREATE TABLE density_type (
-  density_type_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  analysis_id integer NOT NULL DEFAULT 0,
-  block_size integer NOT NULL DEFAULT 0,
-  region_features integer NOT NULL DEFAULT 0,
-  value_type enum NOT NULL DEFAULT 'sum'
+CREATE TABLE "density_type" (
+  "density_type_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "analysis_id" integer NOT NULL DEFAULT 0,
+  "block_size" integer NOT NULL DEFAULT 0,
+  "region_features" integer NOT NULL DEFAULT 0,
+  "value_type" enum NOT NULL DEFAULT 'sum'
 );
 
-CREATE UNIQUE INDEX analysis_id ON density_type (analysis_id, block_size, region_features);
+CREATE UNIQUE INDEX "analysis_id" ON "density_type" ("analysis_id", "block_size", "region_features");
 
 --
--- Table: dependent_xref
+-- Table: "dependent_xref"
 --
-CREATE TABLE dependent_xref (
-  object_xref_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  master_xref_id integer NOT NULL,
-  dependent_xref_id integer NOT NULL
+CREATE TABLE "dependent_xref" (
+  "object_xref_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "master_xref_id" integer NOT NULL,
+  "dependent_xref_id" integer NOT NULL
 );
 
 --
--- Table: ditag
+-- Table: "ditag"
 --
-CREATE TABLE ditag (
-  ditag_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  name varchar(30),
-  type varchar(30),
-  tag_count smallint DEFAULT 1,
-  sequence text
+CREATE TABLE "ditag" (
+  "ditag_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "name" varchar(30),
+  "type" varchar(30),
+  "tag_count" smallint DEFAULT 1,
+  "sequence" text
 );
 
 --
--- Table: ditag_feature
+-- Table: "ditag_feature"
 --
-CREATE TABLE ditag_feature (
-  ditag_feature_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  ditag_id integer NOT NULL DEFAULT 0,
-  ditag_pair_id integer NOT NULL DEFAULT 0,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  seq_region_strand tinyint NOT NULL DEFAULT 0,
-  analysis_id integer NOT NULL DEFAULT 0,
-  hit_start integer NOT NULL DEFAULT 0,
-  hit_end integer NOT NULL DEFAULT 0,
-  hit_strand tinyint NOT NULL DEFAULT 0,
-  cigar_line text,
-  ditag_side char(1) DEFAULT ''
+CREATE TABLE "ditag_feature" (
+  "ditag_feature_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "ditag_id" integer NOT NULL DEFAULT 0,
+  "ditag_pair_id" integer NOT NULL DEFAULT 0,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "seq_region_strand" tinyint NOT NULL DEFAULT 0,
+  "analysis_id" integer NOT NULL DEFAULT 0,
+  "hit_start" integer NOT NULL DEFAULT 0,
+  "hit_end" integer NOT NULL DEFAULT 0,
+  "hit_strand" tinyint NOT NULL DEFAULT 0,
+  "cigar_line" text,
+  "ditag_side" char(1) DEFAULT ''
 );
 
 --
--- Table: dna
+-- Table: "dna"
 --
-CREATE TABLE dna (
-  seq_region_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL DEFAULT 0,
-  sequence mediumtext NOT NULL
+CREATE TABLE "dna" (
+  "seq_region_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL DEFAULT 0,
+  "sequence" mediumtext NOT NULL
 );
 
 --
--- Table: dna_align_feature
+-- Table: "dna_align_feature"
 --
-CREATE TABLE dna_align_feature (
-  dna_align_feature_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  seq_region_strand tinyint NOT NULL DEFAULT 0,
-  hit_start integer NOT NULL DEFAULT 0,
-  hit_end integer NOT NULL DEFAULT 0,
-  hit_strand tinyint NOT NULL DEFAULT 0,
-  hit_name varchar(40) NOT NULL DEFAULT '',
-  analysis_id integer NOT NULL DEFAULT 0,
-  score double precision,
-  evalue double precision,
-  perc_ident float,
-  cigar_line text,
-  external_db_id smallint,
-  hcoverage double precision,
-  align_type enum DEFAULT 'ensembl'
+CREATE TABLE "dna_align_feature" (
+  "dna_align_feature_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "seq_region_strand" tinyint NOT NULL DEFAULT 0,
+  "hit_start" integer NOT NULL DEFAULT 0,
+  "hit_end" integer NOT NULL DEFAULT 0,
+  "hit_strand" tinyint NOT NULL DEFAULT 0,
+  "hit_name" varchar(40) NOT NULL DEFAULT '',
+  "analysis_id" integer NOT NULL DEFAULT 0,
+  "score" double precision,
+  "evalue" double precision,
+  "perc_ident" float,
+  "cigar_line" text,
+  "external_db_id" smallint,
+  "hcoverage" double precision,
+  "align_type" enum DEFAULT 'ensembl'
 );
 
 --
--- Table: exon
+-- Table: "exon"
 --
-CREATE TABLE exon (
-  exon_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL,
-  seq_region_start integer NOT NULL,
-  seq_region_end integer NOT NULL,
-  seq_region_strand tinyint NOT NULL,
-  phase tinyint NOT NULL,
-  end_phase tinyint NOT NULL,
-  is_current tinyint NOT NULL DEFAULT 1,
-  is_constitutive tinyint NOT NULL DEFAULT 0,
-  stable_id varchar(128),
-  version smallint,
-  created_date datetime,
-  modified_date datetime
+CREATE TABLE "exon" (
+  "exon_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL,
+  "seq_region_start" integer NOT NULL,
+  "seq_region_end" integer NOT NULL,
+  "seq_region_strand" tinyint NOT NULL,
+  "phase" tinyint NOT NULL,
+  "end_phase" tinyint NOT NULL,
+  "is_current" tinyint NOT NULL DEFAULT 1,
+  "is_constitutive" tinyint NOT NULL DEFAULT 0,
+  "stable_id" varchar(128),
+  "version" smallint,
+  "created_date" datetime,
+  "modified_date" datetime
 );
 
 --
--- Table: exon_transcript
+-- Table: "exon_transcript"
 --
-CREATE TABLE exon_transcript (
-  exon_id integer NOT NULL DEFAULT 0,
-  transcript_id integer NOT NULL DEFAULT 0,
-  rank integer NOT NULL DEFAULT 0,
-  PRIMARY KEY (exon_id, transcript_id, rank)
+CREATE TABLE "exon_transcript" (
+  "exon_id" integer NOT NULL DEFAULT 0,
+  "transcript_id" integer NOT NULL DEFAULT 0,
+  "rank" integer NOT NULL DEFAULT 0,
+  PRIMARY KEY ("exon_id", "transcript_id", "rank")
 );
 
 --
--- Table: external_db
+-- Table: "external_db"
 --
-CREATE TABLE external_db (
-  external_db_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL DEFAULT 0,
-  db_name varchar(27) NOT NULL DEFAULT '',
-  db_release varchar(40) NOT NULL DEFAULT '',
-  status enum NOT NULL DEFAULT 'KNOWNXREF',
-  priority integer NOT NULL DEFAULT 0,
-  db_display_name varchar(255),
-  type enum,
-  secondary_db_name varchar(255),
-  secondary_db_table varchar(255),
-  description text
+CREATE TABLE "external_db" (
+  "external_db_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL DEFAULT 0,
+  "db_name" varchar(27) NOT NULL DEFAULT '',
+  "db_release" varchar(40) NOT NULL DEFAULT '',
+  "status" enum NOT NULL DEFAULT 'KNOWNXREF',
+  "priority" integer NOT NULL DEFAULT 0,
+  "db_display_name" varchar(255),
+  "type" enum,
+  "secondary_db_name" varchar(255),
+  "secondary_db_table" varchar(255),
+  "description" text
 );
 
-CREATE UNIQUE INDEX db_name_db_release_idx ON external_db (db_name, db_release);
+CREATE UNIQUE INDEX "db_name_db_release_idx" ON "external_db" ("db_name", "db_release");
 
 --
--- Table: external_synonym
+-- Table: "external_synonym"
 --
-CREATE TABLE external_synonym (
-  xref_id integer NOT NULL DEFAULT 0,
-  synonym varchar(40) NOT NULL DEFAULT '',
-  PRIMARY KEY (xref_id, synonym)
+CREATE TABLE "external_synonym" (
+  "xref_id" integer NOT NULL DEFAULT 0,
+  "synonym" varchar(40) NOT NULL DEFAULT '',
+  PRIMARY KEY ("xref_id", "synonym")
 );
 
 --
--- Table: gene
+-- Table: "gene"
 --
-CREATE TABLE gene (
-  gene_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  biotype varchar(40) NOT NULL,
-  analysis_id smallint NOT NULL,
-  seq_region_id integer NOT NULL,
-  seq_region_start integer NOT NULL,
-  seq_region_end integer NOT NULL,
-  seq_region_strand tinyint NOT NULL,
-  display_xref_id integer,
-  source varchar(40) NOT NULL,
-  description text,
-  is_current tinyint NOT NULL DEFAULT 1,
-  canonical_transcript_id integer NOT NULL,
-  stable_id varchar(128),
-  version smallint,
-  created_date datetime,
-  modified_date datetime
+CREATE TABLE "gene" (
+  "gene_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "biotype" varchar(40) NOT NULL,
+  "analysis_id" smallint NOT NULL,
+  "seq_region_id" integer NOT NULL,
+  "seq_region_start" integer NOT NULL,
+  "seq_region_end" integer NOT NULL,
+  "seq_region_strand" tinyint NOT NULL,
+  "display_xref_id" integer,
+  "source" varchar(40) NOT NULL,
+  "description" text,
+  "is_current" tinyint NOT NULL DEFAULT 1,
+  "canonical_transcript_id" integer NOT NULL,
+  "stable_id" varchar(128),
+  "version" smallint,
+  "created_date" datetime,
+  "modified_date" datetime
 );
 
 --
--- Table: gene_archive
+-- Table: "gene_archive"
 --
-CREATE TABLE gene_archive (
-  gene_stable_id varchar(128) NOT NULL DEFAULT '',
-  gene_version smallint NOT NULL DEFAULT 0,
-  transcript_stable_id varchar(128) NOT NULL DEFAULT '',
-  transcript_version smallint NOT NULL DEFAULT 0,
-  translation_stable_id varchar(128) NOT NULL DEFAULT '',
-  translation_version smallint NOT NULL DEFAULT 0,
-  peptide_archive_id integer NOT NULL DEFAULT 0,
-  mapping_session_id integer NOT NULL DEFAULT 0
+CREATE TABLE "gene_archive" (
+  "gene_stable_id" varchar(128) NOT NULL DEFAULT '',
+  "gene_version" smallint NOT NULL DEFAULT 0,
+  "transcript_stable_id" varchar(128) NOT NULL DEFAULT '',
+  "transcript_version" smallint NOT NULL DEFAULT 0,
+  "translation_stable_id" varchar(128) NOT NULL DEFAULT '',
+  "translation_version" smallint NOT NULL DEFAULT 0,
+  "peptide_archive_id" integer NOT NULL DEFAULT 0,
+  "mapping_session_id" integer NOT NULL DEFAULT 0
 );
 
 --
--- Table: gene_attrib
+-- Table: "gene_attrib"
 --
-CREATE TABLE gene_attrib (
-  gene_id integer NOT NULL DEFAULT 0,
-  attrib_type_id smallint NOT NULL DEFAULT 0,
-  value text NOT NULL
+CREATE TABLE "gene_attrib" (
+  "gene_id" integer NOT NULL DEFAULT 0,
+  "attrib_type_id" smallint NOT NULL DEFAULT 0,
+  "value" text NOT NULL
 );
 
-CREATE UNIQUE INDEX gene_attribx ON gene_attrib (gene_id, attrib_type_id, value);
+CREATE UNIQUE INDEX "gene_attribx" ON "gene_attrib" ("gene_id", "attrib_type_id", "value");
 
 --
--- Table: genome_statistics
+-- Table: "genome_statistics"
 --
-CREATE TABLE genome_statistics (
-  genome_statistics_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  statistic varchar(128) NOT NULL,
-  value bigint NOT NULL DEFAULT 0,
-  species_id integer DEFAULT 1,
-  attrib_type_id integer,
-  timestamp datetime
+CREATE TABLE "genome_statistics" (
+  "genome_statistics_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "statistic" varchar(128) NOT NULL,
+  "value" bigint NOT NULL DEFAULT 0,
+  "species_id" integer DEFAULT 1,
+  "attrib_type_id" integer,
+  "timestamp" datetime
 );
 
-CREATE UNIQUE INDEX stats_uniq ON genome_statistics (statistic, attrib_type_id, species_id);
+CREATE UNIQUE INDEX "stats_uniq" ON "genome_statistics" ("statistic", "attrib_type_id", "species_id");
 
 --
--- Table: identity_xref
+-- Table: "identity_xref"
 --
-CREATE TABLE identity_xref (
-  object_xref_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL DEFAULT 0,
-  xref_identity integer,
-  ensembl_identity integer,
-  xref_start integer,
-  xref_end integer,
-  ensembl_start integer,
-  ensembl_end integer,
-  cigar_line text,
-  score double precision,
-  evalue double precision
+CREATE TABLE "identity_xref" (
+  "object_xref_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL DEFAULT 0,
+  "xref_identity" integer,
+  "ensembl_identity" integer,
+  "xref_start" integer,
+  "xref_end" integer,
+  "ensembl_start" integer,
+  "ensembl_end" integer,
+  "cigar_line" text,
+  "score" double precision,
+  "evalue" double precision
 );
 
 --
--- Table: interpro
+-- Table: "interpro"
 --
-CREATE TABLE interpro (
-  interpro_ac varchar(40) NOT NULL DEFAULT '',
-  id varchar(40) NOT NULL
+CREATE TABLE "interpro" (
+  "interpro_ac" varchar(40) NOT NULL DEFAULT '',
+  "id" varchar(40) NOT NULL
 );
 
-CREATE UNIQUE INDEX accession_idx ON interpro (interpro_ac, id);
+CREATE UNIQUE INDEX "accession_idx" ON "interpro" ("interpro_ac", "id");
 
 --
--- Table: intron_supporting_evidence
+-- Table: "intron_supporting_evidence"
 --
-CREATE TABLE intron_supporting_evidence (
-  intron_supporting_evidence_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  analysis_id smallint NOT NULL,
-  seq_region_id integer NOT NULL,
-  seq_region_start integer NOT NULL,
-  seq_region_end integer NOT NULL,
-  seq_region_strand tinyint NOT NULL,
-  hit_name varchar(100) NOT NULL,
-  score decimal(10,3),
-  score_type enum DEFAULT 'NONE',
-  is_splice_canonical tinyint NOT NULL DEFAULT 0
+CREATE TABLE "intron_supporting_evidence" (
+  "intron_supporting_evidence_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "analysis_id" smallint NOT NULL,
+  "seq_region_id" integer NOT NULL,
+  "seq_region_start" integer NOT NULL,
+  "seq_region_end" integer NOT NULL,
+  "seq_region_strand" tinyint NOT NULL,
+  "hit_name" varchar(100) NOT NULL,
+  "score" decimal(10,3),
+  "score_type" enum DEFAULT 'NONE',
+  "is_splice_canonical" tinyint NOT NULL DEFAULT 0
 );
 
-CREATE UNIQUE INDEX analysis_id02 ON intron_supporting_evidence (analysis_id, seq_region_id, seq_region_start, seq_region_end, seq_region_strand, hit_name);
+CREATE UNIQUE INDEX "analysis_id02" ON "intron_supporting_evidence" ("analysis_id", "seq_region_id", "seq_region_start", "seq_region_end", "seq_region_strand", "hit_name");
 
 --
--- Table: karyotype
+-- Table: "karyotype"
 --
-CREATE TABLE karyotype (
-  karyotype_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  band varchar(40),
-  stain varchar(40)
+CREATE TABLE "karyotype" (
+  "karyotype_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "band" varchar(40),
+  "stain" varchar(40)
 );
 
 --
--- Table: map
+-- Table: "map"
 --
-CREATE TABLE map (
-  map_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  map_name varchar(30) NOT NULL DEFAULT ''
+CREATE TABLE "map" (
+  "map_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "map_name" varchar(30) NOT NULL DEFAULT ''
 );
 
 --
--- Table: mapping_session
+-- Table: "mapping_session"
 --
-CREATE TABLE mapping_session (
-  mapping_session_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  old_db_name varchar(80) NOT NULL DEFAULT '',
-  new_db_name varchar(80) NOT NULL DEFAULT '',
-  old_release varchar(5) NOT NULL DEFAULT '',
-  new_release varchar(5) NOT NULL DEFAULT '',
-  old_assembly varchar(20) NOT NULL DEFAULT '',
-  new_assembly varchar(20) NOT NULL DEFAULT '',
-  created datetime
+CREATE TABLE "mapping_session" (
+  "mapping_session_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "old_db_name" varchar(80) NOT NULL DEFAULT '',
+  "new_db_name" varchar(80) NOT NULL DEFAULT '',
+  "old_release" varchar(5) NOT NULL DEFAULT '',
+  "new_release" varchar(5) NOT NULL DEFAULT '',
+  "old_assembly" varchar(20) NOT NULL DEFAULT '',
+  "new_assembly" varchar(20) NOT NULL DEFAULT '',
+  "created" datetime
 );
 
 --
--- Table: mapping_set
+-- Table: "mapping_set"
 --
-CREATE TABLE mapping_set (
-  mapping_set_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  internal_schema_build varchar(20) NOT NULL,
-  external_schema_build varchar(20) NOT NULL
+CREATE TABLE "mapping_set" (
+  "mapping_set_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "internal_schema_build" varchar(20) NOT NULL,
+  "external_schema_build" varchar(20) NOT NULL
 );
 
-CREATE UNIQUE INDEX mapping_idx ON mapping_set (internal_schema_build, external_schema_build);
+CREATE UNIQUE INDEX "mapping_idx" ON "mapping_set" ("internal_schema_build", "external_schema_build");
 
 --
--- Table: marker
+-- Table: "marker"
 --
-CREATE TABLE marker (
-  marker_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  display_marker_synonym_id integer,
-  left_primer varchar(100) NOT NULL DEFAULT '',
-  right_primer varchar(100) NOT NULL DEFAULT '',
-  min_primer_dist integer NOT NULL DEFAULT 0,
-  max_primer_dist integer NOT NULL DEFAULT 0,
-  priority integer,
-  type enum
+CREATE TABLE "marker" (
+  "marker_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "display_marker_synonym_id" integer,
+  "left_primer" varchar(100) NOT NULL DEFAULT '',
+  "right_primer" varchar(100) NOT NULL DEFAULT '',
+  "min_primer_dist" integer NOT NULL DEFAULT 0,
+  "max_primer_dist" integer NOT NULL DEFAULT 0,
+  "priority" integer,
+  "type" enum
 );
 
 --
--- Table: marker_feature
+-- Table: "marker_feature"
 --
-CREATE TABLE marker_feature (
-  marker_feature_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  marker_id integer NOT NULL DEFAULT 0,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  analysis_id integer NOT NULL DEFAULT 0,
-  map_weight integer
+CREATE TABLE "marker_feature" (
+  "marker_feature_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "marker_id" integer NOT NULL DEFAULT 0,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "analysis_id" integer NOT NULL DEFAULT 0,
+  "map_weight" integer
 );
 
 --
--- Table: marker_map_location
+-- Table: "marker_map_location"
 --
-CREATE TABLE marker_map_location (
-  marker_id integer NOT NULL DEFAULT 0,
-  map_id integer NOT NULL DEFAULT 0,
-  chromosome_name varchar(15) NOT NULL DEFAULT '',
-  marker_synonym_id integer NOT NULL DEFAULT 0,
-  position varchar(15) NOT NULL DEFAULT '',
-  lod_score double precision,
-  PRIMARY KEY (marker_id, map_id)
+CREATE TABLE "marker_map_location" (
+  "marker_id" integer NOT NULL DEFAULT 0,
+  "map_id" integer NOT NULL DEFAULT 0,
+  "chromosome_name" varchar(15) NOT NULL DEFAULT '',
+  "marker_synonym_id" integer NOT NULL DEFAULT 0,
+  "position" varchar(15) NOT NULL DEFAULT '',
+  "lod_score" double precision,
+  PRIMARY KEY ("marker_id", "map_id")
 );
 
 --
--- Table: marker_synonym
+-- Table: "marker_synonym"
 --
-CREATE TABLE marker_synonym (
-  marker_synonym_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  marker_id integer NOT NULL DEFAULT 0,
-  source varchar(20),
-  name varchar(30)
+CREATE TABLE "marker_synonym" (
+  "marker_synonym_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "marker_id" integer NOT NULL DEFAULT 0,
+  "source" varchar(20),
+  "name" varchar(30)
 );
 
 --
--- Table: meta
+-- Table: "meta"
 --
-CREATE TABLE meta (
-  meta_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  species_id integer DEFAULT 1,
-  meta_key varchar(40) NOT NULL,
-  meta_value varchar(255) NOT NULL
+CREATE TABLE "meta" (
+  "meta_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "species_id" integer DEFAULT 1,
+  "meta_key" varchar(40) NOT NULL,
+  "meta_value" varchar(255) NOT NULL
 );
 
-CREATE UNIQUE INDEX species_key_value_idx ON meta (species_id, meta_key, meta_value);
+CREATE UNIQUE INDEX "species_key_value_idx" ON "meta" ("species_id", "meta_key", "meta_value");
 
 --
--- Table: meta_coord
+-- Table: "meta_coord"
 --
-CREATE TABLE meta_coord (
-  table_name varchar(40) NOT NULL DEFAULT '',
-  coord_system_id integer NOT NULL DEFAULT 0,
-  max_length integer
+CREATE TABLE "meta_coord" (
+  "table_name" varchar(40) NOT NULL DEFAULT '',
+  "coord_system_id" integer NOT NULL DEFAULT 0,
+  "max_length" integer
 );
 
-CREATE UNIQUE INDEX cs_table_name_idx ON meta_coord (coord_system_id, table_name);
+CREATE UNIQUE INDEX "cs_table_name_idx" ON "meta_coord" ("coord_system_id", "table_name");
 
 --
--- Table: misc_attrib
+-- Table: "misc_attrib"
 --
-CREATE TABLE misc_attrib (
-  misc_feature_id integer NOT NULL DEFAULT 0,
-  attrib_type_id smallint NOT NULL DEFAULT 0,
-  value text NOT NULL
+CREATE TABLE "misc_attrib" (
+  "misc_feature_id" integer NOT NULL DEFAULT 0,
+  "attrib_type_id" smallint NOT NULL DEFAULT 0,
+  "value" text NOT NULL
 );
 
-CREATE UNIQUE INDEX misc_attribx ON misc_attrib (misc_feature_id, attrib_type_id, value);
+CREATE UNIQUE INDEX "misc_attribx" ON "misc_attrib" ("misc_feature_id", "attrib_type_id", "value");
 
 --
--- Table: misc_feature
+-- Table: "misc_feature"
 --
-CREATE TABLE misc_feature (
-  misc_feature_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  seq_region_strand tinyint NOT NULL DEFAULT 0
+CREATE TABLE "misc_feature" (
+  "misc_feature_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "seq_region_strand" tinyint NOT NULL DEFAULT 0
 );
 
 --
--- Table: misc_feature_misc_set
+-- Table: "misc_feature_misc_set"
 --
-CREATE TABLE misc_feature_misc_set (
-  misc_feature_id integer NOT NULL DEFAULT 0,
-  misc_set_id smallint NOT NULL DEFAULT 0,
-  PRIMARY KEY (misc_feature_id, misc_set_id)
+CREATE TABLE "misc_feature_misc_set" (
+  "misc_feature_id" integer NOT NULL DEFAULT 0,
+  "misc_set_id" smallint NOT NULL DEFAULT 0,
+  PRIMARY KEY ("misc_feature_id", "misc_set_id")
 );
 
 --
--- Table: misc_set
+-- Table: "misc_set"
 --
-CREATE TABLE misc_set (
-  misc_set_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  code varchar(25) NOT NULL DEFAULT '',
-  name varchar(255) NOT NULL DEFAULT '',
-  description text NOT NULL,
-  max_length integer NOT NULL DEFAULT 0
+CREATE TABLE "misc_set" (
+  "misc_set_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "code" varchar(25) NOT NULL DEFAULT '',
+  "name" varchar(255) NOT NULL DEFAULT '',
+  "description" text NOT NULL,
+  "max_length" integer NOT NULL DEFAULT 0
 );
 
-CREATE UNIQUE INDEX code_idx02 ON misc_set (code);
+CREATE UNIQUE INDEX "code_idx02" ON "misc_set" ("code");
 
 --
--- Table: object_xref
+-- Table: "object_xref"
 --
-CREATE TABLE object_xref (
-  object_xref_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  ensembl_id integer NOT NULL DEFAULT 0,
-  ensembl_object_type enum NOT NULL DEFAULT 'RawContig',
-  xref_id integer NOT NULL,
-  linkage_annotation varchar(255),
-  analysis_id smallint
+CREATE TABLE "object_xref" (
+  "object_xref_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "ensembl_id" integer NOT NULL DEFAULT 0,
+  "ensembl_object_type" enum NOT NULL DEFAULT 'RawContig',
+  "xref_id" integer NOT NULL,
+  "linkage_annotation" varchar(255),
+  "analysis_id" smallint
 );
 
-CREATE UNIQUE INDEX xref_idx ON object_xref (xref_id, ensembl_object_type, ensembl_id, analysis_id);
+CREATE UNIQUE INDEX "xref_idx" ON "object_xref" ("xref_id", "ensembl_object_type", "ensembl_id", "analysis_id");
 
 --
--- Table: ontology_xref
+-- Table: "ontology_xref"
 --
-CREATE TABLE ontology_xref (
-  object_xref_id integer NOT NULL DEFAULT 0,
-  linkage_type varchar(3),
-  source_xref_id integer
+CREATE TABLE "ontology_xref" (
+  "object_xref_id" integer NOT NULL DEFAULT 0,
+  "linkage_type" varchar(3),
+  "source_xref_id" integer
 );
 
-CREATE UNIQUE INDEX object_source_type_idx ON ontology_xref (object_xref_id, source_xref_id, linkage_type);
+CREATE UNIQUE INDEX "object_source_type_idx" ON "ontology_xref" ("object_xref_id", "source_xref_id", "linkage_type");
 
 --
--- Table: operon
+-- Table: "operon"
 --
-CREATE TABLE operon (
-  operon_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL,
-  seq_region_start integer NOT NULL,
-  seq_region_end integer NOT NULL,
-  seq_region_strand tinyint NOT NULL,
-  display_label varchar(255),
-  analysis_id smallint NOT NULL,
-  stable_id varchar(128),
-  version smallint,
-  created_date datetime,
-  modified_date datetime
+CREATE TABLE "operon" (
+  "operon_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL,
+  "seq_region_start" integer NOT NULL,
+  "seq_region_end" integer NOT NULL,
+  "seq_region_strand" tinyint NOT NULL,
+  "display_label" varchar(255),
+  "analysis_id" smallint NOT NULL,
+  "stable_id" varchar(128),
+  "version" smallint,
+  "created_date" datetime,
+  "modified_date" datetime
 );
 
 --
--- Table: operon_transcript
+-- Table: "operon_transcript"
 --
-CREATE TABLE operon_transcript (
-  operon_transcript_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL,
-  seq_region_start integer NOT NULL,
-  seq_region_end integer NOT NULL,
-  seq_region_strand tinyint NOT NULL,
-  operon_id integer NOT NULL,
-  display_label varchar(255),
-  analysis_id smallint NOT NULL,
-  stable_id varchar(128),
-  version smallint,
-  created_date datetime,
-  modified_date datetime
+CREATE TABLE "operon_transcript" (
+  "operon_transcript_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL,
+  "seq_region_start" integer NOT NULL,
+  "seq_region_end" integer NOT NULL,
+  "seq_region_strand" tinyint NOT NULL,
+  "operon_id" integer NOT NULL,
+  "display_label" varchar(255),
+  "analysis_id" smallint NOT NULL,
+  "stable_id" varchar(128),
+  "version" smallint,
+  "created_date" datetime,
+  "modified_date" datetime
 );
 
 --
--- Table: operon_transcript_gene
+-- Table: "operon_transcript_gene"
 --
-CREATE TABLE operon_transcript_gene (
-  operon_transcript_id integer,
-  gene_id integer
+CREATE TABLE "operon_transcript_gene" (
+  "operon_transcript_id" integer,
+  "gene_id" integer
 );
 
 --
--- Table: peptide_archive
+-- Table: "peptide_archive"
 --
-CREATE TABLE peptide_archive (
-  peptide_archive_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  md5_checksum varchar(32),
-  peptide_seq mediumtext NOT NULL
+CREATE TABLE "peptide_archive" (
+  "peptide_archive_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "md5_checksum" varchar(32),
+  "peptide_seq" mediumtext NOT NULL
 );
 
 --
--- Table: prediction_exon
+-- Table: "prediction_exon"
 --
-CREATE TABLE prediction_exon (
-  prediction_exon_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  prediction_transcript_id integer NOT NULL DEFAULT 0,
-  exon_rank smallint NOT NULL DEFAULT 0,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  seq_region_strand tinyint NOT NULL DEFAULT 0,
-  start_phase tinyint NOT NULL DEFAULT 0,
-  score double precision,
-  p_value double precision
+CREATE TABLE "prediction_exon" (
+  "prediction_exon_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "prediction_transcript_id" integer NOT NULL DEFAULT 0,
+  "exon_rank" smallint NOT NULL DEFAULT 0,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "seq_region_strand" tinyint NOT NULL DEFAULT 0,
+  "start_phase" tinyint NOT NULL DEFAULT 0,
+  "score" double precision,
+  "p_value" double precision
 );
 
 --
--- Table: prediction_transcript
+-- Table: "prediction_transcript"
 --
-CREATE TABLE prediction_transcript (
-  prediction_transcript_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  seq_region_strand tinyint NOT NULL DEFAULT 0,
-  analysis_id integer,
-  display_label varchar(255)
+CREATE TABLE "prediction_transcript" (
+  "prediction_transcript_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "seq_region_strand" tinyint NOT NULL DEFAULT 0,
+  "analysis_id" integer,
+  "display_label" varchar(255)
 );
 
 --
--- Table: protein_align_feature
+-- Table: "protein_align_feature"
 --
-CREATE TABLE protein_align_feature (
-  protein_align_feature_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  seq_region_strand tinyint NOT NULL DEFAULT 1,
-  hit_start integer NOT NULL DEFAULT 0,
-  hit_end integer NOT NULL DEFAULT 0,
-  hit_name varchar(40) NOT NULL DEFAULT '',
-  analysis_id integer NOT NULL DEFAULT 0,
-  score double precision,
-  evalue double precision,
-  perc_ident float,
-  cigar_line text,
-  external_db_id smallint,
-  hcoverage double precision,
-  align_type enum DEFAULT 'ensembl'
+CREATE TABLE "protein_align_feature" (
+  "protein_align_feature_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "seq_region_strand" tinyint NOT NULL DEFAULT 1,
+  "hit_start" integer NOT NULL DEFAULT 0,
+  "hit_end" integer NOT NULL DEFAULT 0,
+  "hit_name" varchar(40) NOT NULL DEFAULT '',
+  "analysis_id" integer NOT NULL DEFAULT 0,
+  "score" double precision,
+  "evalue" double precision,
+  "perc_ident" float,
+  "cigar_line" text,
+  "external_db_id" smallint,
+  "hcoverage" double precision,
+  "align_type" enum DEFAULT 'ensembl'
 );
 
 --
--- Table: protein_feature
+-- Table: "protein_feature"
 --
-CREATE TABLE protein_feature (
-  protein_feature_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  translation_id integer NOT NULL DEFAULT 0,
-  seq_start integer NOT NULL DEFAULT 0,
-  seq_end integer NOT NULL DEFAULT 0,
-  hit_start integer NOT NULL DEFAULT 0,
-  hit_end integer NOT NULL DEFAULT 0,
-  hit_name varchar(40) NOT NULL,
-  analysis_id integer NOT NULL DEFAULT 0,
-  score double precision NOT NULL DEFAULT 0,
-  evalue double precision,
-  perc_ident float,
-  external_data text,
-  hit_description text,
-  cigar_line text,
-  align_type enum
+CREATE TABLE "protein_feature" (
+  "protein_feature_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "translation_id" integer NOT NULL DEFAULT 0,
+  "seq_start" integer NOT NULL DEFAULT 0,
+  "seq_end" integer NOT NULL DEFAULT 0,
+  "hit_start" integer NOT NULL DEFAULT 0,
+  "hit_end" integer NOT NULL DEFAULT 0,
+  "hit_name" varchar(40) NOT NULL,
+  "analysis_id" integer NOT NULL DEFAULT 0,
+  "score" double precision NOT NULL DEFAULT 0,
+  "evalue" double precision,
+  "perc_ident" float,
+  "external_data" text,
+  "hit_description" text,
+  "cigar_line" text,
+  "align_type" enum
 );
 
-CREATE UNIQUE INDEX aln_idx ON protein_feature (translation_id, hit_name, seq_start, seq_end, hit_start, hit_end, analysis_id);
+CREATE UNIQUE INDEX "aln_idx" ON "protein_feature" ("translation_id", "hit_name", "seq_start", "seq_end", "hit_start", "hit_end", "analysis_id");
 
 --
--- Table: repeat_consensus
+-- Table: "repeat_consensus"
 --
-CREATE TABLE repeat_consensus (
-  repeat_consensus_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  repeat_name varchar(255) NOT NULL DEFAULT '',
-  repeat_class varchar(100) NOT NULL DEFAULT '',
-  repeat_type varchar(40) NOT NULL DEFAULT '',
-  repeat_consensus text
+CREATE TABLE "repeat_consensus" (
+  "repeat_consensus_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "repeat_name" varchar(255) NOT NULL DEFAULT '',
+  "repeat_class" varchar(100) NOT NULL DEFAULT '',
+  "repeat_type" varchar(40) NOT NULL DEFAULT '',
+  "repeat_consensus" text
 );
 
 --
--- Table: repeat_feature
+-- Table: "repeat_feature"
 --
-CREATE TABLE repeat_feature (
-  repeat_feature_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  seq_region_strand tinyint NOT NULL DEFAULT 1,
-  repeat_start integer NOT NULL DEFAULT 0,
-  repeat_end integer NOT NULL DEFAULT 0,
-  repeat_consensus_id integer NOT NULL DEFAULT 0,
-  analysis_id integer NOT NULL DEFAULT 0,
-  score double precision
+CREATE TABLE "repeat_feature" (
+  "repeat_feature_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "seq_region_strand" tinyint NOT NULL DEFAULT 1,
+  "repeat_start" integer NOT NULL DEFAULT 0,
+  "repeat_end" integer NOT NULL DEFAULT 0,
+  "repeat_consensus_id" integer NOT NULL DEFAULT 0,
+  "analysis_id" integer NOT NULL DEFAULT 0,
+  "score" double precision
 );
 
 --
--- Table: seq_region
+-- Table: "seq_region"
 --
-CREATE TABLE seq_region (
-  seq_region_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  name varchar(255) NOT NULL,
-  coord_system_id integer NOT NULL DEFAULT 0,
-  length integer NOT NULL DEFAULT 0
+CREATE TABLE "seq_region" (
+  "seq_region_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "name" varchar(255) NOT NULL,
+  "coord_system_id" integer NOT NULL DEFAULT 0,
+  "length" integer NOT NULL DEFAULT 0
 );
 
-CREATE UNIQUE INDEX name_cs_idx ON seq_region (name, coord_system_id);
+CREATE UNIQUE INDEX "name_cs_idx" ON "seq_region" ("name", "coord_system_id");
 
 --
--- Table: seq_region_attrib
+-- Table: "seq_region_attrib"
 --
-CREATE TABLE seq_region_attrib (
-  seq_region_id integer NOT NULL DEFAULT 0,
-  attrib_type_id smallint NOT NULL DEFAULT 0,
-  value text NOT NULL
+CREATE TABLE "seq_region_attrib" (
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "attrib_type_id" smallint NOT NULL DEFAULT 0,
+  "value" text NOT NULL
 );
 
-CREATE UNIQUE INDEX region_attribx ON seq_region_attrib (seq_region_id, attrib_type_id, value);
+CREATE UNIQUE INDEX "region_attribx" ON "seq_region_attrib" ("seq_region_id", "attrib_type_id", "value");
 
 --
--- Table: seq_region_mapping
+-- Table: "seq_region_mapping"
 --
-CREATE TABLE seq_region_mapping (
-  external_seq_region_id integer NOT NULL,
-  internal_seq_region_id integer NOT NULL,
-  mapping_set_id integer NOT NULL
+CREATE TABLE "seq_region_mapping" (
+  "external_seq_region_id" integer NOT NULL,
+  "internal_seq_region_id" integer NOT NULL,
+  "mapping_set_id" integer NOT NULL
 );
 
 --
--- Table: seq_region_synonym
+-- Table: "seq_region_synonym"
 --
-CREATE TABLE seq_region_synonym (
-  seq_region_synonym_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL,
-  synonym varchar(250) NOT NULL,
-  external_db_id smallint
+CREATE TABLE "seq_region_synonym" (
+  "seq_region_synonym_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL,
+  "synonym" varchar(250) NOT NULL,
+  "external_db_id" smallint
 );
 
-CREATE UNIQUE INDEX syn_idx ON seq_region_synonym (synonym, seq_region_id);
+CREATE UNIQUE INDEX "syn_idx" ON "seq_region_synonym" ("synonym", "seq_region_id");
 
 --
--- Table: simple_feature
+-- Table: "simple_feature"
 --
-CREATE TABLE simple_feature (
-  simple_feature_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  seq_region_strand tinyint NOT NULL DEFAULT 0,
-  display_label varchar(40) NOT NULL DEFAULT '',
-  analysis_id integer NOT NULL DEFAULT 0,
-  score double precision
+CREATE TABLE "simple_feature" (
+  "simple_feature_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "seq_region_strand" tinyint NOT NULL DEFAULT 0,
+  "display_label" varchar(40) NOT NULL DEFAULT '',
+  "analysis_id" integer NOT NULL DEFAULT 0,
+  "score" double precision
 );
 
 --
--- Table: stable_id_event
+-- Table: "stable_id_event"
 --
-CREATE TABLE stable_id_event (
-  old_stable_id varchar(128),
-  old_version smallint,
-  new_stable_id varchar(128),
-  new_version smallint,
-  mapping_session_id integer NOT NULL DEFAULT 0,
-  type enum NOT NULL DEFAULT 'gene',
-  score float NOT NULL DEFAULT 0
+CREATE TABLE "stable_id_event" (
+  "old_stable_id" varchar(128),
+  "old_version" smallint,
+  "new_stable_id" varchar(128),
+  "new_version" smallint,
+  "mapping_session_id" integer NOT NULL DEFAULT 0,
+  "type" enum NOT NULL DEFAULT 'gene',
+  "score" float NOT NULL DEFAULT 0
 );
 
-CREATE UNIQUE INDEX uni_idx ON stable_id_event (mapping_session_id, old_stable_id, old_version, new_stable_id, new_version, type);
+CREATE UNIQUE INDEX "uni_idx" ON "stable_id_event" ("mapping_session_id", "old_stable_id", "old_version", "new_stable_id", "new_version", "type");
 
 --
--- Table: supporting_feature
+-- Table: "supporting_feature"
 --
-CREATE TABLE supporting_feature (
-  exon_id integer NOT NULL DEFAULT 0,
-  feature_type enum,
-  feature_id integer NOT NULL DEFAULT 0
+CREATE TABLE "supporting_feature" (
+  "exon_id" integer NOT NULL DEFAULT 0,
+  "feature_type" enum,
+  "feature_id" integer NOT NULL DEFAULT 0
 );
 
-CREATE UNIQUE INDEX all_idx02 ON supporting_feature (exon_id, feature_type, feature_id);
+CREATE UNIQUE INDEX "all_idx02" ON "supporting_feature" ("exon_id", "feature_type", "feature_id");
 
 --
--- Table: transcript
+-- Table: "transcript"
 --
-CREATE TABLE transcript (
-  transcript_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  gene_id integer,
-  analysis_id smallint NOT NULL,
-  seq_region_id integer NOT NULL,
-  seq_region_start integer NOT NULL,
-  seq_region_end integer NOT NULL,
-  seq_region_strand tinyint NOT NULL,
-  display_xref_id integer,
-  source varchar(40) NOT NULL DEFAULT 'ensembl',
-  biotype varchar(40) NOT NULL,
-  description text,
-  is_current tinyint NOT NULL DEFAULT 1,
-  canonical_translation_id integer,
-  stable_id varchar(128),
-  version smallint,
-  created_date datetime,
-  modified_date datetime
+CREATE TABLE "transcript" (
+  "transcript_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "gene_id" integer,
+  "analysis_id" smallint NOT NULL,
+  "seq_region_id" integer NOT NULL,
+  "seq_region_start" integer NOT NULL,
+  "seq_region_end" integer NOT NULL,
+  "seq_region_strand" tinyint NOT NULL,
+  "display_xref_id" integer,
+  "source" varchar(40) NOT NULL DEFAULT 'ensembl',
+  "biotype" varchar(40) NOT NULL,
+  "description" text,
+  "is_current" tinyint NOT NULL DEFAULT 1,
+  "canonical_translation_id" integer,
+  "stable_id" varchar(128),
+  "version" smallint,
+  "created_date" datetime,
+  "modified_date" datetime
 );
 
-CREATE UNIQUE INDEX canonical_translation_idx ON transcript (canonical_translation_id);
+CREATE UNIQUE INDEX "canonical_translation_idx" ON "transcript" ("canonical_translation_id");
 
 --
--- Table: transcript_attrib
+-- Table: "transcript_attrib"
 --
-CREATE TABLE transcript_attrib (
-  transcript_id integer NOT NULL DEFAULT 0,
-  attrib_type_id smallint NOT NULL DEFAULT 0,
-  value text NOT NULL
+CREATE TABLE "transcript_attrib" (
+  "transcript_id" integer NOT NULL DEFAULT 0,
+  "attrib_type_id" smallint NOT NULL DEFAULT 0,
+  "value" text NOT NULL
 );
 
-CREATE UNIQUE INDEX transcript_attribx ON transcript_attrib (transcript_id, attrib_type_id, value);
+CREATE UNIQUE INDEX "transcript_attribx" ON "transcript_attrib" ("transcript_id", "attrib_type_id", "value");
 
 --
--- Table: transcript_intron_supporting_evidence
+-- Table: "transcript_intron_supporting_evidence"
 --
-CREATE TABLE transcript_intron_supporting_evidence (
-  transcript_id integer NOT NULL,
-  intron_supporting_evidence_id integer NOT NULL,
-  previous_exon_id integer NOT NULL,
-  next_exon_id integer NOT NULL,
-  PRIMARY KEY (intron_supporting_evidence_id, transcript_id)
+CREATE TABLE "transcript_intron_supporting_evidence" (
+  "transcript_id" integer NOT NULL,
+  "intron_supporting_evidence_id" integer NOT NULL,
+  "previous_exon_id" integer NOT NULL,
+  "next_exon_id" integer NOT NULL,
+  PRIMARY KEY ("intron_supporting_evidence_id", "transcript_id")
 );
 
 --
--- Table: transcript_supporting_feature
+-- Table: "transcript_supporting_feature"
 --
-CREATE TABLE transcript_supporting_feature (
-  transcript_id integer NOT NULL DEFAULT 0,
-  feature_type enum,
-  feature_id integer NOT NULL DEFAULT 0
+CREATE TABLE "transcript_supporting_feature" (
+  "transcript_id" integer NOT NULL DEFAULT 0,
+  "feature_type" enum,
+  "feature_id" integer NOT NULL DEFAULT 0
 );
 
-CREATE UNIQUE INDEX all_idx03 ON transcript_supporting_feature (transcript_id, feature_type, feature_id);
+CREATE UNIQUE INDEX "all_idx03" ON "transcript_supporting_feature" ("transcript_id", "feature_type", "feature_id");
 
 --
--- Table: translation
+-- Table: "translation"
 --
-CREATE TABLE translation (
-  translation_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  transcript_id integer NOT NULL,
-  seq_start integer NOT NULL,
-  start_exon_id integer NOT NULL,
-  seq_end integer NOT NULL,
-  end_exon_id integer NOT NULL,
-  stable_id varchar(128),
-  version smallint,
-  created_date datetime,
-  modified_date datetime
+CREATE TABLE "translation" (
+  "translation_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "transcript_id" integer NOT NULL,
+  "seq_start" integer NOT NULL,
+  "start_exon_id" integer NOT NULL,
+  "seq_end" integer NOT NULL,
+  "end_exon_id" integer NOT NULL,
+  "stable_id" varchar(128),
+  "version" smallint,
+  "created_date" datetime,
+  "modified_date" datetime
 );
 
 --
--- Table: translation_attrib
+-- Table: "translation_attrib"
 --
-CREATE TABLE translation_attrib (
-  translation_id integer NOT NULL DEFAULT 0,
-  attrib_type_id smallint NOT NULL DEFAULT 0,
-  value text NOT NULL
+CREATE TABLE "translation_attrib" (
+  "translation_id" integer NOT NULL DEFAULT 0,
+  "attrib_type_id" smallint NOT NULL DEFAULT 0,
+  "value" text NOT NULL
 );
 
-CREATE UNIQUE INDEX translation_attribx ON translation_attrib (translation_id, attrib_type_id, value);
+CREATE UNIQUE INDEX "translation_attribx" ON "translation_attrib" ("translation_id", "attrib_type_id", "value");
 
 --
--- Table: unmapped_object
+-- Table: "unmapped_object"
 --
-CREATE TABLE unmapped_object (
-  unmapped_object_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  type enum NOT NULL,
-  analysis_id integer NOT NULL,
-  external_db_id integer,
-  identifier varchar(255) NOT NULL,
-  unmapped_reason_id integer NOT NULL,
-  query_score double precision,
-  target_score double precision,
-  ensembl_id integer DEFAULT 0,
-  ensembl_object_type enum DEFAULT 'RawContig',
-  parent varchar(255)
+CREATE TABLE "unmapped_object" (
+  "unmapped_object_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "type" enum NOT NULL,
+  "analysis_id" integer NOT NULL,
+  "external_db_id" integer,
+  "identifier" varchar(255) NOT NULL,
+  "unmapped_reason_id" integer NOT NULL,
+  "query_score" double precision,
+  "target_score" double precision,
+  "ensembl_id" integer DEFAULT 0,
+  "ensembl_object_type" enum DEFAULT 'RawContig',
+  "parent" varchar(255)
 );
 
-CREATE UNIQUE INDEX unique_unmapped_obj_idx ON unmapped_object (ensembl_id, ensembl_object_type, identifier, unmapped_reason_id, parent, external_db_id);
+CREATE UNIQUE INDEX "unique_unmapped_obj_idx" ON "unmapped_object" ("ensembl_id", "ensembl_object_type", "identifier", "unmapped_reason_id", "parent", "external_db_id");
 
 --
--- Table: unmapped_reason
+-- Table: "unmapped_reason"
 --
-CREATE TABLE unmapped_reason (
-  unmapped_reason_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  summary_description varchar(255),
-  full_description varchar(255)
+CREATE TABLE "unmapped_reason" (
+  "unmapped_reason_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "summary_description" varchar(255),
+  "full_description" varchar(255)
 );
 
 --
--- Table: xref
+-- Table: "xref"
 --
-CREATE TABLE xref (
-  xref_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  external_db_id integer NOT NULL,
-  dbprimary_acc varchar(512) NOT NULL,
-  display_label varchar(512) NOT NULL,
-  version varchar(10),
-  description text,
-  info_type enum NOT NULL DEFAULT 'NONE',
-  info_text varchar(255) NOT NULL DEFAULT ''
+CREATE TABLE "xref" (
+  "xref_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "external_db_id" integer NOT NULL,
+  "dbprimary_acc" varchar(512) NOT NULL,
+  "display_label" varchar(512) NOT NULL,
+  "version" varchar(10),
+  "description" text,
+  "info_type" enum NOT NULL DEFAULT 'NONE',
+  "info_text" varchar(255) NOT NULL DEFAULT ''
 );
 
-CREATE UNIQUE INDEX id_index ON xref (dbprimary_acc, external_db_id, info_type, info_text, version);
+CREATE UNIQUE INDEX "id_index" ON "xref" ("dbprimary_acc", "external_db_id", "info_type", "info_text", "version");
 
 COMMIT;
diff --git a/modules/t/test-genome-DBs/ontology/ontology/SQLite/table.sql b/modules/t/test-genome-DBs/ontology/ontology/SQLite/table.sql
index d9b5cbb1bd3d6d8fa49aa7de8d7e45b4956eac81..b277bc09a36887dca4e2e1c9fbfc042f312925f7 100644
--- a/modules/t/test-genome-DBs/ontology/ontology/SQLite/table.sql
+++ b/modules/t/test-genome-DBs/ontology/ontology/SQLite/table.sql
@@ -1,300 +1,300 @@
 -- 
 -- Created by SQL::Translator::Producer::SQLite
--- Created on Wed Apr 25 09:29:19 2018
+-- Created on Wed Sep 26 12:07:23 2018
 -- 
 
 BEGIN TRANSACTION;
 
 --
--- Table: alt_id
+-- Table: "alt_id"
 --
-CREATE TABLE alt_id (
-  alt_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  term_id integer NOT NULL,
-  accession varchar(64) NOT NULL
+CREATE TABLE "alt_id" (
+  "alt_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "term_id" integer NOT NULL,
+  "accession" varchar(64) NOT NULL
 );
 
-CREATE UNIQUE INDEX term_alt_idx ON alt_id (term_id, alt_id);
+CREATE UNIQUE INDEX "term_alt_idx" ON "alt_id" ("term_id", "alt_id");
 
 --
--- Table: aux_GO_Cross_product_review_map
+-- Table: "aux_GO_Cross_product_review_map"
 --
-CREATE TABLE aux_GO_Cross_product_review_map (
-  term_id integer NOT NULL,
-  subset_term_id integer NOT NULL,
-  distance tinyint NOT NULL
+CREATE TABLE "aux_GO_Cross_product_review_map" (
+  "term_id" integer NOT NULL,
+  "subset_term_id" integer NOT NULL,
+  "distance" tinyint NOT NULL
 );
 
-CREATE UNIQUE INDEX map_idx ON aux_GO_Cross_product_review_map (term_id, subset_term_id);
+CREATE UNIQUE INDEX "map_idx" ON "aux_GO_Cross_product_review_map" ("term_id", "subset_term_id");
 
 --
--- Table: aux_GO_goslim_aspergillus_map
+-- Table: "aux_GO_goslim_aspergillus_map"
 --
-CREATE TABLE aux_GO_goslim_aspergillus_map (
-  term_id integer NOT NULL,
-  subset_term_id integer NOT NULL,
-  distance tinyint NOT NULL
+CREATE TABLE "aux_GO_goslim_aspergillus_map" (
+  "term_id" integer NOT NULL,
+  "subset_term_id" integer NOT NULL,
+  "distance" tinyint NOT NULL
 );
 
-CREATE UNIQUE INDEX map_idx02 ON aux_GO_goslim_aspergillus_map (term_id, subset_term_id);
+CREATE UNIQUE INDEX "map_idx02" ON "aux_GO_goslim_aspergillus_map" ("term_id", "subset_term_id");
 
 --
--- Table: aux_GO_goslim_candida_map
+-- Table: "aux_GO_goslim_candida_map"
 --
-CREATE TABLE aux_GO_goslim_candida_map (
-  term_id integer NOT NULL,
-  subset_term_id integer NOT NULL,
-  distance tinyint NOT NULL
+CREATE TABLE "aux_GO_goslim_candida_map" (
+  "term_id" integer NOT NULL,
+  "subset_term_id" integer NOT NULL,
+  "distance" tinyint NOT NULL
 );
 
-CREATE UNIQUE INDEX map_idx03 ON aux_GO_goslim_candida_map (term_id, subset_term_id);
+CREATE UNIQUE INDEX "map_idx03" ON "aux_GO_goslim_candida_map" ("term_id", "subset_term_id");
 
 --
--- Table: aux_GO_goslim_generic_map
+-- Table: "aux_GO_goslim_generic_map"
 --
-CREATE TABLE aux_GO_goslim_generic_map (
-  term_id integer NOT NULL,
-  subset_term_id integer NOT NULL,
-  distance tinyint NOT NULL
+CREATE TABLE "aux_GO_goslim_generic_map" (
+  "term_id" integer NOT NULL,
+  "subset_term_id" integer NOT NULL,
+  "distance" tinyint NOT NULL
 );
 
-CREATE UNIQUE INDEX map_idx04 ON aux_GO_goslim_generic_map (term_id, subset_term_id);
+CREATE UNIQUE INDEX "map_idx04" ON "aux_GO_goslim_generic_map" ("term_id", "subset_term_id");
 
 --
--- Table: aux_GO_goslim_metagenomics_map
+-- Table: "aux_GO_goslim_metagenomics_map"
 --
-CREATE TABLE aux_GO_goslim_metagenomics_map (
-  term_id integer NOT NULL,
-  subset_term_id integer NOT NULL,
-  distance tinyint NOT NULL
+CREATE TABLE "aux_GO_goslim_metagenomics_map" (
+  "term_id" integer NOT NULL,
+  "subset_term_id" integer NOT NULL,
+  "distance" tinyint NOT NULL
 );
 
-CREATE UNIQUE INDEX map_idx05 ON aux_GO_goslim_metagenomics_map (term_id, subset_term_id);
+CREATE UNIQUE INDEX "map_idx05" ON "aux_GO_goslim_metagenomics_map" ("term_id", "subset_term_id");
 
 --
--- Table: aux_GO_goslim_pir_map
+-- Table: "aux_GO_goslim_pir_map"
 --
-CREATE TABLE aux_GO_goslim_pir_map (
-  term_id integer NOT NULL,
-  subset_term_id integer NOT NULL,
-  distance tinyint NOT NULL
+CREATE TABLE "aux_GO_goslim_pir_map" (
+  "term_id" integer NOT NULL,
+  "subset_term_id" integer NOT NULL,
+  "distance" tinyint NOT NULL
 );
 
-CREATE UNIQUE INDEX map_idx06 ON aux_GO_goslim_pir_map (term_id, subset_term_id);
+CREATE UNIQUE INDEX "map_idx06" ON "aux_GO_goslim_pir_map" ("term_id", "subset_term_id");
 
 --
--- Table: aux_GO_goslim_plant_map
+-- Table: "aux_GO_goslim_plant_map"
 --
-CREATE TABLE aux_GO_goslim_plant_map (
-  term_id integer NOT NULL,
-  subset_term_id integer NOT NULL,
-  distance tinyint NOT NULL
+CREATE TABLE "aux_GO_goslim_plant_map" (
+  "term_id" integer NOT NULL,
+  "subset_term_id" integer NOT NULL,
+  "distance" tinyint NOT NULL
 );
 
-CREATE UNIQUE INDEX map_idx07 ON aux_GO_goslim_plant_map (term_id, subset_term_id);
+CREATE UNIQUE INDEX "map_idx07" ON "aux_GO_goslim_plant_map" ("term_id", "subset_term_id");
 
 --
--- Table: aux_GO_goslim_pombe_map
+-- Table: "aux_GO_goslim_pombe_map"
 --
-CREATE TABLE aux_GO_goslim_pombe_map (
-  term_id integer NOT NULL,
-  subset_term_id integer NOT NULL,
-  distance tinyint NOT NULL
+CREATE TABLE "aux_GO_goslim_pombe_map" (
+  "term_id" integer NOT NULL,
+  "subset_term_id" integer NOT NULL,
+  "distance" tinyint NOT NULL
 );
 
-CREATE UNIQUE INDEX map_idx08 ON aux_GO_goslim_pombe_map (term_id, subset_term_id);
+CREATE UNIQUE INDEX "map_idx08" ON "aux_GO_goslim_pombe_map" ("term_id", "subset_term_id");
 
 --
--- Table: aux_GO_goslim_yeast_map
+-- Table: "aux_GO_goslim_yeast_map"
 --
-CREATE TABLE aux_GO_goslim_yeast_map (
-  term_id integer NOT NULL,
-  subset_term_id integer NOT NULL,
-  distance tinyint NOT NULL
+CREATE TABLE "aux_GO_goslim_yeast_map" (
+  "term_id" integer NOT NULL,
+  "subset_term_id" integer NOT NULL,
+  "distance" tinyint NOT NULL
 );
 
-CREATE UNIQUE INDEX map_idx09 ON aux_GO_goslim_yeast_map (term_id, subset_term_id);
+CREATE UNIQUE INDEX "map_idx09" ON "aux_GO_goslim_yeast_map" ("term_id", "subset_term_id");
 
 --
--- Table: aux_GO_gosubset_prok_map
+-- Table: "aux_GO_gosubset_prok_map"
 --
-CREATE TABLE aux_GO_gosubset_prok_map (
-  term_id integer NOT NULL,
-  subset_term_id integer NOT NULL,
-  distance tinyint NOT NULL
+CREATE TABLE "aux_GO_gosubset_prok_map" (
+  "term_id" integer NOT NULL,
+  "subset_term_id" integer NOT NULL,
+  "distance" tinyint NOT NULL
 );
 
-CREATE UNIQUE INDEX map_idx10 ON aux_GO_gosubset_prok_map (term_id, subset_term_id);
+CREATE UNIQUE INDEX "map_idx10" ON "aux_GO_gosubset_prok_map" ("term_id", "subset_term_id");
 
 --
--- Table: aux_GO_high_level_annotation_qc_map
+-- Table: "aux_GO_high_level_annotation_qc_map"
 --
-CREATE TABLE aux_GO_high_level_annotation_qc_map (
-  term_id integer NOT NULL,
-  subset_term_id integer NOT NULL,
-  distance tinyint NOT NULL
+CREATE TABLE "aux_GO_high_level_annotation_qc_map" (
+  "term_id" integer NOT NULL,
+  "subset_term_id" integer NOT NULL,
+  "distance" tinyint NOT NULL
 );
 
-CREATE UNIQUE INDEX map_idx11 ON aux_GO_high_level_annotation_qc_map (term_id, subset_term_id);
+CREATE UNIQUE INDEX "map_idx11" ON "aux_GO_high_level_annotation_qc_map" ("term_id", "subset_term_id");
 
 --
--- Table: aux_GO_mf_needs_review_map
+-- Table: "aux_GO_mf_needs_review_map"
 --
-CREATE TABLE aux_GO_mf_needs_review_map (
-  term_id integer NOT NULL,
-  subset_term_id integer NOT NULL,
-  distance tinyint NOT NULL
+CREATE TABLE "aux_GO_mf_needs_review_map" (
+  "term_id" integer NOT NULL,
+  "subset_term_id" integer NOT NULL,
+  "distance" tinyint NOT NULL
 );
 
-CREATE UNIQUE INDEX map_idx12 ON aux_GO_mf_needs_review_map (term_id, subset_term_id);
+CREATE UNIQUE INDEX "map_idx12" ON "aux_GO_mf_needs_review_map" ("term_id", "subset_term_id");
 
 --
--- Table: aux_GO_virus_checked_map
+-- Table: "aux_GO_virus_checked_map"
 --
-CREATE TABLE aux_GO_virus_checked_map (
-  term_id integer NOT NULL,
-  subset_term_id integer NOT NULL,
-  distance tinyint NOT NULL
+CREATE TABLE "aux_GO_virus_checked_map" (
+  "term_id" integer NOT NULL,
+  "subset_term_id" integer NOT NULL,
+  "distance" tinyint NOT NULL
 );
 
-CREATE UNIQUE INDEX map_idx13 ON aux_GO_virus_checked_map (term_id, subset_term_id);
+CREATE UNIQUE INDEX "map_idx13" ON "aux_GO_virus_checked_map" ("term_id", "subset_term_id");
 
 --
--- Table: aux_SO_DBVAR_map
+-- Table: "aux_SO_DBVAR_map"
 --
-CREATE TABLE aux_SO_DBVAR_map (
-  term_id integer NOT NULL,
-  subset_term_id integer NOT NULL,
-  distance tinyint NOT NULL
+CREATE TABLE "aux_SO_DBVAR_map" (
+  "term_id" integer NOT NULL,
+  "subset_term_id" integer NOT NULL,
+  "distance" tinyint NOT NULL
 );
 
-CREATE UNIQUE INDEX map_idx14 ON aux_SO_DBVAR_map (term_id, subset_term_id);
+CREATE UNIQUE INDEX "map_idx14" ON "aux_SO_DBVAR_map" ("term_id", "subset_term_id");
 
 --
--- Table: aux_SO_SOFA_map
+-- Table: "aux_SO_SOFA_map"
 --
-CREATE TABLE aux_SO_SOFA_map (
-  term_id integer NOT NULL,
-  subset_term_id integer NOT NULL,
-  distance tinyint NOT NULL
+CREATE TABLE "aux_SO_SOFA_map" (
+  "term_id" integer NOT NULL,
+  "subset_term_id" integer NOT NULL,
+  "distance" tinyint NOT NULL
 );
 
-CREATE UNIQUE INDEX map_idx15 ON aux_SO_SOFA_map (term_id, subset_term_id);
+CREATE UNIQUE INDEX "map_idx15" ON "aux_SO_SOFA_map" ("term_id", "subset_term_id");
 
 --
--- Table: aux_SO_biosapiens_map
+-- Table: "aux_SO_biosapiens_map"
 --
-CREATE TABLE aux_SO_biosapiens_map (
-  term_id integer NOT NULL,
-  subset_term_id integer NOT NULL,
-  distance tinyint NOT NULL
+CREATE TABLE "aux_SO_biosapiens_map" (
+  "term_id" integer NOT NULL,
+  "subset_term_id" integer NOT NULL,
+  "distance" tinyint NOT NULL
 );
 
-CREATE UNIQUE INDEX map_idx16 ON aux_SO_biosapiens_map (term_id, subset_term_id);
+CREATE UNIQUE INDEX "map_idx16" ON "aux_SO_biosapiens_map" ("term_id", "subset_term_id");
 
 --
--- Table: closure
+-- Table: "closure"
 --
-CREATE TABLE closure (
-  closure_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  child_term_id integer NOT NULL,
-  parent_term_id integer NOT NULL,
-  subparent_term_id integer,
-  distance tinyint NOT NULL,
-  ontology_id integer NOT NULL,
-  confident_relationship tinyint NOT NULL DEFAULT 0
+CREATE TABLE "closure" (
+  "closure_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "child_term_id" integer NOT NULL,
+  "parent_term_id" integer NOT NULL,
+  "subparent_term_id" integer,
+  "distance" tinyint NOT NULL,
+  "ontology_id" integer NOT NULL,
+  "confident_relationship" tinyint NOT NULL DEFAULT 0
 );
 
-CREATE UNIQUE INDEX child_parent_idx ON closure (child_term_id, parent_term_id, subparent_term_id, ontology_id);
+CREATE UNIQUE INDEX "child_parent_idx" ON "closure" ("child_term_id", "parent_term_id", "subparent_term_id", "ontology_id");
 
 --
--- Table: meta
+-- Table: "meta"
 --
-CREATE TABLE meta (
-  meta_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  meta_key varchar(64) NOT NULL,
-  meta_value varchar(128),
-  species_id integer
+CREATE TABLE "meta" (
+  "meta_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "meta_key" varchar(64) NOT NULL,
+  "meta_value" varchar(128),
+  "species_id" integer
 );
 
-CREATE UNIQUE INDEX key_value_idx ON meta (meta_key, meta_value);
+CREATE UNIQUE INDEX "key_value_idx" ON "meta" ("meta_key", "meta_value");
 
 --
--- Table: ontology
+-- Table: "ontology"
 --
-CREATE TABLE ontology (
-  ontology_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  name varchar(64) NOT NULL,
-  namespace varchar(64) NOT NULL,
-  data_version varchar(64)
+CREATE TABLE "ontology" (
+  "ontology_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "name" varchar(64) NOT NULL,
+  "namespace" varchar(64) NOT NULL,
+  "data_version" varchar(64)
 );
 
-CREATE UNIQUE INDEX name_namespace_idx ON ontology (name, namespace);
+CREATE UNIQUE INDEX "name_namespace_idx" ON "ontology" ("name", "namespace");
 
 --
--- Table: relation
+-- Table: "relation"
 --
-CREATE TABLE relation (
-  relation_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  child_term_id integer NOT NULL,
-  parent_term_id integer NOT NULL,
-  relation_type_id integer NOT NULL,
-  intersection_of tinyint NOT NULL DEFAULT 0,
-  ontology_id integer NOT NULL
+CREATE TABLE "relation" (
+  "relation_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "child_term_id" integer NOT NULL,
+  "parent_term_id" integer NOT NULL,
+  "relation_type_id" integer NOT NULL,
+  "intersection_of" tinyint NOT NULL DEFAULT 0,
+  "ontology_id" integer NOT NULL
 );
 
-CREATE UNIQUE INDEX child_parent_idx02 ON relation (child_term_id, parent_term_id, relation_type_id, intersection_of, ontology_id);
+CREATE UNIQUE INDEX "child_parent_idx02" ON "relation" ("child_term_id", "parent_term_id", "relation_type_id", "intersection_of", "ontology_id");
 
 --
--- Table: relation_type
+-- Table: "relation_type"
 --
-CREATE TABLE relation_type (
-  relation_type_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  name varchar(64) NOT NULL
+CREATE TABLE "relation_type" (
+  "relation_type_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "name" varchar(64) NOT NULL
 );
 
-CREATE UNIQUE INDEX name_idx ON relation_type (name);
+CREATE UNIQUE INDEX "name_idx" ON "relation_type" ("name");
 
 --
--- Table: subset
+-- Table: "subset"
 --
-CREATE TABLE subset (
-  subset_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  name varchar(64) NOT NULL,
-  definition varchar(128) NOT NULL
+CREATE TABLE "subset" (
+  "subset_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "name" varchar(64) NOT NULL,
+  "definition" varchar(128) NOT NULL
 );
 
-CREATE UNIQUE INDEX name_idx02 ON subset (name);
+CREATE UNIQUE INDEX "name_idx02" ON "subset" ("name");
 
 --
--- Table: synonym
+-- Table: "synonym"
 --
-CREATE TABLE synonym (
-  synonym_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  term_id integer NOT NULL,
-  name mediumtext NOT NULL,
-  type enum,
-  dbxref varchar(256) NOT NULL
+CREATE TABLE "synonym" (
+  "synonym_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "term_id" integer NOT NULL,
+  "name" mediumtext NOT NULL,
+  "type" enum,
+  "dbxref" varchar(256) NOT NULL
 );
 
-CREATE UNIQUE INDEX term_synonym_idx ON synonym (term_id, synonym_id);
+CREATE UNIQUE INDEX "term_synonym_idx" ON "synonym" ("term_id", "synonym_id");
 
 --
--- Table: term
+-- Table: "term"
 --
-CREATE TABLE term (
-  term_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  ontology_id integer NOT NULL,
-  subsets text,
-  accession varchar(64) NOT NULL,
-  name varchar(255) NOT NULL,
-  definition text,
-  is_root integer,
-  is_obsolete integer
+CREATE TABLE "term" (
+  "term_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "ontology_id" integer NOT NULL,
+  "subsets" text,
+  "accession" varchar(64) NOT NULL,
+  "name" varchar(255) NOT NULL,
+  "definition" text,
+  "is_root" integer,
+  "is_obsolete" integer
 );
 
-CREATE UNIQUE INDEX accession_idx ON term (accession);
+CREATE UNIQUE INDEX "accession_idx" ON "term" ("accession");
 
-CREATE UNIQUE INDEX ontology_acc_idx ON term (ontology_id, accession);
+CREATE UNIQUE INDEX "ontology_acc_idx" ON "term" ("ontology_id", "accession");
 
 COMMIT;
diff --git a/modules/t/test-genome-DBs/polyploidy/core/SQLite/table.sql b/modules/t/test-genome-DBs/polyploidy/core/SQLite/table.sql
index 18bab2c7ff47d4ad9d31dfb3549d1aefae6869ff..4fa31f8ae94624d978026f29dd964c6b3fc70300 100644
--- a/modules/t/test-genome-DBs/polyploidy/core/SQLite/table.sql
+++ b/modules/t/test-genome-DBs/polyploidy/core/SQLite/table.sql
@@ -1,1002 +1,1002 @@
 -- 
 -- Created by SQL::Translator::Producer::SQLite
--- Created on Thu Jun 28 16:52:13 2018
+-- Created on Wed Sep 26 12:07:32 2018
 -- 
 
 BEGIN TRANSACTION;
 
 --
--- Table: alt_allele
+-- Table: "alt_allele"
 --
-CREATE TABLE alt_allele (
-  alt_allele_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  alt_allele_group_id integer NOT NULL,
-  gene_id integer NOT NULL
+CREATE TABLE "alt_allele" (
+  "alt_allele_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "alt_allele_group_id" integer NOT NULL,
+  "gene_id" integer NOT NULL
 );
 
-CREATE UNIQUE INDEX gene_idx ON alt_allele (gene_id);
+CREATE UNIQUE INDEX "gene_idx" ON "alt_allele" ("gene_id");
 
 --
--- Table: alt_allele_attrib
+-- Table: "alt_allele_attrib"
 --
-CREATE TABLE alt_allele_attrib (
-  alt_allele_id integer,
-  attrib enum
+CREATE TABLE "alt_allele_attrib" (
+  "alt_allele_id" integer,
+  "attrib" enum
 );
 
 --
--- Table: alt_allele_group
+-- Table: "alt_allele_group"
 --
-CREATE TABLE alt_allele_group (
-  alt_allele_group_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL
+CREATE TABLE "alt_allele_group" (
+  "alt_allele_group_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL
 );
 
 --
--- Table: analysis
+-- Table: "analysis"
 --
-CREATE TABLE analysis (
-  analysis_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  created datetime,
-  logic_name varchar(40) NOT NULL DEFAULT '',
-  db varchar(120),
-  db_version varchar(40),
-  db_file varchar(120),
-  program varchar(80),
-  program_version varchar(40),
-  program_file varchar(80),
-  parameters text,
-  module varchar(80),
-  module_version varchar(40),
-  gff_source varchar(40),
-  gff_feature varchar(40)
+CREATE TABLE "analysis" (
+  "analysis_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "created" datetime,
+  "logic_name" varchar(40) NOT NULL DEFAULT '',
+  "db" varchar(120),
+  "db_version" varchar(40),
+  "db_file" varchar(120),
+  "program" varchar(80),
+  "program_version" varchar(40),
+  "program_file" varchar(80),
+  "parameters" text,
+  "module" varchar(80),
+  "module_version" varchar(40),
+  "gff_source" varchar(40),
+  "gff_feature" varchar(40)
 );
 
-CREATE UNIQUE INDEX logic_name_idx ON analysis (logic_name);
+CREATE UNIQUE INDEX "logic_name_idx" ON "analysis" ("logic_name");
 
 --
--- Table: analysis_description
+-- Table: "analysis_description"
 --
-CREATE TABLE analysis_description (
-  analysis_id integer NOT NULL DEFAULT 0,
-  description text,
-  display_label varchar(255),
-  displayable tinyint NOT NULL DEFAULT 1,
-  web_data text
+CREATE TABLE "analysis_description" (
+  "analysis_id" integer NOT NULL DEFAULT 0,
+  "description" text,
+  "display_label" varchar(255),
+  "displayable" tinyint NOT NULL DEFAULT 1,
+  "web_data" text
 );
 
-CREATE UNIQUE INDEX analysis_idx ON analysis_description (analysis_id);
+CREATE UNIQUE INDEX "analysis_idx" ON "analysis_description" ("analysis_id");
 
 --
--- Table: assembly
+-- Table: "assembly"
 --
-CREATE TABLE assembly (
-  asm_seq_region_id integer NOT NULL DEFAULT 0,
-  cmp_seq_region_id integer NOT NULL DEFAULT 0,
-  asm_start integer NOT NULL DEFAULT 0,
-  asm_end integer NOT NULL DEFAULT 0,
-  cmp_start integer NOT NULL DEFAULT 0,
-  cmp_end integer NOT NULL DEFAULT 0,
-  ori tinyint NOT NULL DEFAULT 0
+CREATE TABLE "assembly" (
+  "asm_seq_region_id" integer NOT NULL DEFAULT 0,
+  "cmp_seq_region_id" integer NOT NULL DEFAULT 0,
+  "asm_start" integer NOT NULL DEFAULT 0,
+  "asm_end" integer NOT NULL DEFAULT 0,
+  "cmp_start" integer NOT NULL DEFAULT 0,
+  "cmp_end" integer NOT NULL DEFAULT 0,
+  "ori" tinyint NOT NULL DEFAULT 0
 );
 
-CREATE UNIQUE INDEX all_idx ON assembly (asm_seq_region_id, cmp_seq_region_id, asm_start, asm_end, cmp_start, cmp_end, ori);
+CREATE UNIQUE INDEX "all_idx" ON "assembly" ("asm_seq_region_id", "cmp_seq_region_id", "asm_start", "asm_end", "cmp_start", "cmp_end", "ori");
 
 --
--- Table: assembly_exception
+-- Table: "assembly_exception"
 --
-CREATE TABLE assembly_exception (
-  assembly_exception_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  exc_type enum NOT NULL DEFAULT 'HAP',
-  exc_seq_region_id integer NOT NULL DEFAULT 0,
-  exc_seq_region_start integer NOT NULL DEFAULT 0,
-  exc_seq_region_end integer NOT NULL DEFAULT 0,
-  ori integer NOT NULL DEFAULT 0
+CREATE TABLE "assembly_exception" (
+  "assembly_exception_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "exc_type" enum NOT NULL DEFAULT 'HAP',
+  "exc_seq_region_id" integer NOT NULL DEFAULT 0,
+  "exc_seq_region_start" integer NOT NULL DEFAULT 0,
+  "exc_seq_region_end" integer NOT NULL DEFAULT 0,
+  "ori" integer NOT NULL DEFAULT 0
 );
 
 --
--- Table: associated_group
+-- Table: "associated_group"
 --
-CREATE TABLE associated_group (
-  associated_group_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  description varchar(128)
+CREATE TABLE "associated_group" (
+  "associated_group_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "description" varchar(128)
 );
 
 --
--- Table: associated_xref
+-- Table: "associated_xref"
 --
-CREATE TABLE associated_xref (
-  associated_xref_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  object_xref_id integer NOT NULL DEFAULT 0,
-  xref_id integer NOT NULL DEFAULT 0,
-  source_xref_id integer,
-  condition_type varchar(128),
-  associated_group_id integer,
-  rank integer DEFAULT 0
+CREATE TABLE "associated_xref" (
+  "associated_xref_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "object_xref_id" integer NOT NULL DEFAULT 0,
+  "xref_id" integer NOT NULL DEFAULT 0,
+  "source_xref_id" integer,
+  "condition_type" varchar(128),
+  "associated_group_id" integer,
+  "rank" integer DEFAULT 0
 );
 
-CREATE UNIQUE INDEX object_associated_source_type_idx ON associated_xref (object_xref_id, xref_id, source_xref_id, condition_type, associated_group_id);
+CREATE UNIQUE INDEX "object_associated_source_type_idx" ON "associated_xref" ("object_xref_id", "xref_id", "source_xref_id", "condition_type", "associated_group_id");
 
 --
--- Table: attrib_type
+-- Table: "attrib_type"
 --
-CREATE TABLE attrib_type (
-  attrib_type_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  code varchar(20) NOT NULL DEFAULT '',
-  name varchar(255) NOT NULL DEFAULT '',
-  description text
+CREATE TABLE "attrib_type" (
+  "attrib_type_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "code" varchar(20) NOT NULL DEFAULT '',
+  "name" varchar(255) NOT NULL DEFAULT '',
+  "description" text
 );
 
-CREATE UNIQUE INDEX code_idx ON attrib_type (code);
+CREATE UNIQUE INDEX "code_idx" ON "attrib_type" ("code");
 
 --
--- Table: biotype
+-- Table: "biotype"
 --
-CREATE TABLE biotype (
-  biotype_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  name varchar(64) NOT NULL,
-  object_type enum NOT NULL DEFAULT 'gene',
-  db_type varchar NOT NULL DEFAULT 'core',
-  attrib_type_id integer,
-  description text,
-  biotype_group enum,
-  so_acc varchar(64)
+CREATE TABLE "biotype" (
+  "biotype_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "name" varchar(64) NOT NULL,
+  "object_type" enum NOT NULL DEFAULT 'gene',
+  "db_type" varchar NOT NULL DEFAULT 'core',
+  "attrib_type_id" integer,
+  "description" text,
+  "biotype_group" enum,
+  "so_acc" varchar(64)
 );
 
-CREATE UNIQUE INDEX name_type_idx ON biotype (name, object_type);
+CREATE UNIQUE INDEX "name_type_idx" ON "biotype" ("name", "object_type");
 
 --
--- Table: coord_system
+-- Table: "coord_system"
 --
-CREATE TABLE coord_system (
-  coord_system_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  species_id integer NOT NULL DEFAULT 1,
-  name varchar(40) NOT NULL,
-  version varchar(255),
-  rank integer NOT NULL,
-  attrib varchar
+CREATE TABLE "coord_system" (
+  "coord_system_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "species_id" integer NOT NULL DEFAULT 1,
+  "name" varchar(40) NOT NULL,
+  "version" varchar(255),
+  "rank" integer NOT NULL,
+  "attrib" varchar
 );
 
-CREATE UNIQUE INDEX name_idx ON coord_system (name, version, species_id);
+CREATE UNIQUE INDEX "name_idx" ON "coord_system" ("name", "version", "species_id");
 
-CREATE UNIQUE INDEX rank_idx ON coord_system (rank, species_id);
+CREATE UNIQUE INDEX "rank_idx" ON "coord_system" ("rank", "species_id");
 
 --
--- Table: data_file
+-- Table: "data_file"
 --
-CREATE TABLE data_file (
-  data_file_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  coord_system_id integer NOT NULL,
-  analysis_id smallint NOT NULL,
-  name varchar(100) NOT NULL,
-  version_lock tinyint NOT NULL DEFAULT 0,
-  absolute tinyint NOT NULL DEFAULT 0,
-  url text,
-  file_type enum
+CREATE TABLE "data_file" (
+  "data_file_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "coord_system_id" integer NOT NULL,
+  "analysis_id" smallint NOT NULL,
+  "name" varchar(100) NOT NULL,
+  "version_lock" tinyint NOT NULL DEFAULT 0,
+  "absolute" tinyint NOT NULL DEFAULT 0,
+  "url" text,
+  "file_type" enum
 );
 
-CREATE UNIQUE INDEX df_unq_idx ON data_file (coord_system_id, analysis_id, name, file_type);
+CREATE UNIQUE INDEX "df_unq_idx" ON "data_file" ("coord_system_id", "analysis_id", "name", "file_type");
 
 --
--- Table: density_feature
+-- Table: "density_feature"
 --
-CREATE TABLE density_feature (
-  density_feature_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  density_type_id integer NOT NULL DEFAULT 0,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  density_value float NOT NULL DEFAULT 0
+CREATE TABLE "density_feature" (
+  "density_feature_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "density_type_id" integer NOT NULL DEFAULT 0,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "density_value" float NOT NULL DEFAULT 0
 );
 
 --
--- Table: density_type
+-- Table: "density_type"
 --
-CREATE TABLE density_type (
-  density_type_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  analysis_id integer NOT NULL DEFAULT 0,
-  block_size integer NOT NULL DEFAULT 0,
-  region_features integer NOT NULL DEFAULT 0,
-  value_type enum NOT NULL DEFAULT 'sum'
+CREATE TABLE "density_type" (
+  "density_type_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "analysis_id" integer NOT NULL DEFAULT 0,
+  "block_size" integer NOT NULL DEFAULT 0,
+  "region_features" integer NOT NULL DEFAULT 0,
+  "value_type" enum NOT NULL DEFAULT 'sum'
 );
 
-CREATE UNIQUE INDEX analysis_id ON density_type (analysis_id, block_size, region_features);
+CREATE UNIQUE INDEX "analysis_id" ON "density_type" ("analysis_id", "block_size", "region_features");
 
 --
--- Table: dependent_xref
+-- Table: "dependent_xref"
 --
-CREATE TABLE dependent_xref (
-  object_xref_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  master_xref_id integer NOT NULL,
-  dependent_xref_id integer NOT NULL
+CREATE TABLE "dependent_xref" (
+  "object_xref_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "master_xref_id" integer NOT NULL,
+  "dependent_xref_id" integer NOT NULL
 );
 
 --
--- Table: ditag
+-- Table: "ditag"
 --
-CREATE TABLE ditag (
-  ditag_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  name varchar(30),
-  type varchar(30),
-  tag_count smallint DEFAULT 1,
-  sequence text
+CREATE TABLE "ditag" (
+  "ditag_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "name" varchar(30),
+  "type" varchar(30),
+  "tag_count" smallint DEFAULT 1,
+  "sequence" text
 );
 
 --
--- Table: ditag_feature
+-- Table: "ditag_feature"
 --
-CREATE TABLE ditag_feature (
-  ditag_feature_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  ditag_id integer NOT NULL DEFAULT 0,
-  ditag_pair_id integer NOT NULL DEFAULT 0,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  seq_region_strand tinyint NOT NULL DEFAULT 0,
-  analysis_id integer NOT NULL DEFAULT 0,
-  hit_start integer NOT NULL DEFAULT 0,
-  hit_end integer NOT NULL DEFAULT 0,
-  hit_strand tinyint NOT NULL DEFAULT 0,
-  cigar_line text,
-  ditag_side char(1) DEFAULT ''
+CREATE TABLE "ditag_feature" (
+  "ditag_feature_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "ditag_id" integer NOT NULL DEFAULT 0,
+  "ditag_pair_id" integer NOT NULL DEFAULT 0,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "seq_region_strand" tinyint NOT NULL DEFAULT 0,
+  "analysis_id" integer NOT NULL DEFAULT 0,
+  "hit_start" integer NOT NULL DEFAULT 0,
+  "hit_end" integer NOT NULL DEFAULT 0,
+  "hit_strand" tinyint NOT NULL DEFAULT 0,
+  "cigar_line" text,
+  "ditag_side" char(1) DEFAULT ''
 );
 
 --
--- Table: dna
+-- Table: "dna"
 --
-CREATE TABLE dna (
-  seq_region_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL DEFAULT 0,
-  sequence mediumtext NOT NULL
+CREATE TABLE "dna" (
+  "seq_region_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL DEFAULT 0,
+  "sequence" mediumtext NOT NULL
 );
 
 --
--- Table: dna_align_feature
+-- Table: "dna_align_feature"
 --
-CREATE TABLE dna_align_feature (
-  dna_align_feature_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  seq_region_strand tinyint NOT NULL DEFAULT 0,
-  hit_start integer NOT NULL DEFAULT 0,
-  hit_end integer NOT NULL DEFAULT 0,
-  hit_strand tinyint NOT NULL DEFAULT 0,
-  hit_name varchar(40) NOT NULL DEFAULT '',
-  analysis_id integer NOT NULL DEFAULT 0,
-  score double precision,
-  evalue double precision,
-  perc_ident float,
-  cigar_line text,
-  external_db_id smallint,
-  hcoverage double precision,
-  align_type enum DEFAULT 'ensembl'
+CREATE TABLE "dna_align_feature" (
+  "dna_align_feature_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "seq_region_strand" tinyint NOT NULL DEFAULT 0,
+  "hit_start" integer NOT NULL DEFAULT 0,
+  "hit_end" integer NOT NULL DEFAULT 0,
+  "hit_strand" tinyint NOT NULL DEFAULT 0,
+  "hit_name" varchar(40) NOT NULL DEFAULT '',
+  "analysis_id" integer NOT NULL DEFAULT 0,
+  "score" double precision,
+  "evalue" double precision,
+  "perc_ident" float,
+  "cigar_line" text,
+  "external_db_id" smallint,
+  "hcoverage" double precision,
+  "align_type" enum DEFAULT 'ensembl'
 );
 
 --
--- Table: dna_align_feature_attrib
+-- Table: "dna_align_feature_attrib"
 --
-CREATE TABLE dna_align_feature_attrib (
-  dna_align_feature_id integer NOT NULL,
-  attrib_type_id smallint NOT NULL,
-  value text NOT NULL
+CREATE TABLE "dna_align_feature_attrib" (
+  "dna_align_feature_id" integer NOT NULL,
+  "attrib_type_id" smallint NOT NULL,
+  "value" text NOT NULL
 );
 
-CREATE UNIQUE INDEX dna_align_feature_attribx ON dna_align_feature_attrib (dna_align_feature_id, attrib_type_id, value);
+CREATE UNIQUE INDEX "dna_align_feature_attribx" ON "dna_align_feature_attrib" ("dna_align_feature_id", "attrib_type_id", "value");
 
 --
--- Table: exon
+-- Table: "exon"
 --
-CREATE TABLE exon (
-  exon_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL,
-  seq_region_start integer NOT NULL,
-  seq_region_end integer NOT NULL,
-  seq_region_strand tinyint NOT NULL,
-  phase tinyint NOT NULL,
-  end_phase tinyint NOT NULL,
-  is_current tinyint NOT NULL DEFAULT 1,
-  is_constitutive tinyint NOT NULL DEFAULT 0,
-  stable_id varchar(128),
-  version smallint,
-  created_date datetime,
-  modified_date datetime
+CREATE TABLE "exon" (
+  "exon_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL,
+  "seq_region_start" integer NOT NULL,
+  "seq_region_end" integer NOT NULL,
+  "seq_region_strand" tinyint NOT NULL,
+  "phase" tinyint NOT NULL,
+  "end_phase" tinyint NOT NULL,
+  "is_current" tinyint NOT NULL DEFAULT 1,
+  "is_constitutive" tinyint NOT NULL DEFAULT 0,
+  "stable_id" varchar(128),
+  "version" smallint,
+  "created_date" datetime,
+  "modified_date" datetime
 );
 
 --
--- Table: exon_transcript
+-- Table: "exon_transcript"
 --
-CREATE TABLE exon_transcript (
-  exon_id integer NOT NULL DEFAULT 0,
-  transcript_id integer NOT NULL DEFAULT 0,
-  rank integer NOT NULL DEFAULT 0,
-  PRIMARY KEY (exon_id, transcript_id, rank)
+CREATE TABLE "exon_transcript" (
+  "exon_id" integer NOT NULL DEFAULT 0,
+  "transcript_id" integer NOT NULL DEFAULT 0,
+  "rank" integer NOT NULL DEFAULT 0,
+  PRIMARY KEY ("exon_id", "transcript_id", "rank")
 );
 
 --
--- Table: external_db
+-- Table: "external_db"
 --
-CREATE TABLE external_db (
-  external_db_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL DEFAULT 0,
-  db_name varchar(27) NOT NULL DEFAULT '',
-  db_release varchar(40) NOT NULL DEFAULT '',
-  status enum NOT NULL DEFAULT 'KNOWNXREF',
-  priority integer NOT NULL DEFAULT 0,
-  db_display_name varchar(255),
-  type enum,
-  secondary_db_name varchar(255),
-  secondary_db_table varchar(255),
-  description text
+CREATE TABLE "external_db" (
+  "external_db_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL DEFAULT 0,
+  "db_name" varchar(27) NOT NULL DEFAULT '',
+  "db_release" varchar(40) NOT NULL DEFAULT '',
+  "status" enum NOT NULL DEFAULT 'KNOWNXREF',
+  "priority" integer NOT NULL DEFAULT 0,
+  "db_display_name" varchar(255),
+  "type" enum,
+  "secondary_db_name" varchar(255),
+  "secondary_db_table" varchar(255),
+  "description" text
 );
 
-CREATE UNIQUE INDEX db_name_db_release_idx ON external_db (db_name, db_release);
+CREATE UNIQUE INDEX "db_name_db_release_idx" ON "external_db" ("db_name", "db_release");
 
 --
--- Table: external_synonym
+-- Table: "external_synonym"
 --
-CREATE TABLE external_synonym (
-  xref_id integer NOT NULL DEFAULT 0,
-  synonym varchar(40) NOT NULL DEFAULT '',
-  PRIMARY KEY (xref_id, synonym)
+CREATE TABLE "external_synonym" (
+  "xref_id" integer NOT NULL DEFAULT 0,
+  "synonym" varchar(40) NOT NULL DEFAULT '',
+  PRIMARY KEY ("xref_id", "synonym")
 );
 
 --
--- Table: gene
+-- Table: "gene"
 --
-CREATE TABLE gene (
-  gene_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  biotype varchar(40) NOT NULL,
-  analysis_id smallint NOT NULL,
-  seq_region_id integer NOT NULL,
-  seq_region_start integer NOT NULL,
-  seq_region_end integer NOT NULL,
-  seq_region_strand tinyint NOT NULL,
-  display_xref_id integer,
-  source varchar(40) NOT NULL,
-  description text,
-  is_current tinyint NOT NULL DEFAULT 1,
-  canonical_transcript_id integer NOT NULL,
-  stable_id varchar(128),
-  version smallint,
-  created_date datetime,
-  modified_date datetime
+CREATE TABLE "gene" (
+  "gene_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "biotype" varchar(40) NOT NULL,
+  "analysis_id" smallint NOT NULL,
+  "seq_region_id" integer NOT NULL,
+  "seq_region_start" integer NOT NULL,
+  "seq_region_end" integer NOT NULL,
+  "seq_region_strand" tinyint NOT NULL,
+  "display_xref_id" integer,
+  "source" varchar(40) NOT NULL,
+  "description" text,
+  "is_current" tinyint NOT NULL DEFAULT 1,
+  "canonical_transcript_id" integer NOT NULL,
+  "stable_id" varchar(128),
+  "version" smallint,
+  "created_date" datetime,
+  "modified_date" datetime
 );
 
 --
--- Table: gene_archive
+-- Table: "gene_archive"
 --
-CREATE TABLE gene_archive (
-  gene_stable_id varchar(128) NOT NULL DEFAULT '',
-  gene_version smallint NOT NULL DEFAULT 0,
-  transcript_stable_id varchar(128) NOT NULL DEFAULT '',
-  transcript_version smallint NOT NULL DEFAULT 0,
-  translation_stable_id varchar(128) NOT NULL DEFAULT '',
-  translation_version smallint NOT NULL DEFAULT 0,
-  peptide_archive_id integer NOT NULL DEFAULT 0,
-  mapping_session_id integer NOT NULL DEFAULT 0
+CREATE TABLE "gene_archive" (
+  "gene_stable_id" varchar(128) NOT NULL DEFAULT '',
+  "gene_version" smallint NOT NULL DEFAULT 0,
+  "transcript_stable_id" varchar(128) NOT NULL DEFAULT '',
+  "transcript_version" smallint NOT NULL DEFAULT 0,
+  "translation_stable_id" varchar(128) NOT NULL DEFAULT '',
+  "translation_version" smallint NOT NULL DEFAULT 0,
+  "peptide_archive_id" integer NOT NULL DEFAULT 0,
+  "mapping_session_id" integer NOT NULL DEFAULT 0
 );
 
 --
--- Table: gene_attrib
+-- Table: "gene_attrib"
 --
-CREATE TABLE gene_attrib (
-  gene_id integer NOT NULL DEFAULT 0,
-  attrib_type_id smallint NOT NULL DEFAULT 0,
-  value text NOT NULL
+CREATE TABLE "gene_attrib" (
+  "gene_id" integer NOT NULL DEFAULT 0,
+  "attrib_type_id" smallint NOT NULL DEFAULT 0,
+  "value" text NOT NULL
 );
 
-CREATE UNIQUE INDEX gene_attribx ON gene_attrib (gene_id, attrib_type_id, value);
+CREATE UNIQUE INDEX "gene_attribx" ON "gene_attrib" ("gene_id", "attrib_type_id", "value");
 
 --
--- Table: genome_statistics
+-- Table: "genome_statistics"
 --
-CREATE TABLE genome_statistics (
-  genome_statistics_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  statistic varchar(128) NOT NULL,
-  value bigint NOT NULL DEFAULT 0,
-  species_id integer DEFAULT 1,
-  attrib_type_id integer,
-  timestamp datetime
+CREATE TABLE "genome_statistics" (
+  "genome_statistics_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "statistic" varchar(128) NOT NULL,
+  "value" bigint NOT NULL DEFAULT 0,
+  "species_id" integer DEFAULT 1,
+  "attrib_type_id" integer,
+  "timestamp" datetime
 );
 
-CREATE UNIQUE INDEX stats_uniq ON genome_statistics (statistic, attrib_type_id, species_id);
+CREATE UNIQUE INDEX "stats_uniq" ON "genome_statistics" ("statistic", "attrib_type_id", "species_id");
 
 --
--- Table: identity_xref
+-- Table: "identity_xref"
 --
-CREATE TABLE identity_xref (
-  object_xref_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL DEFAULT 0,
-  xref_identity integer,
-  ensembl_identity integer,
-  xref_start integer,
-  xref_end integer,
-  ensembl_start integer,
-  ensembl_end integer,
-  cigar_line text,
-  score double precision,
-  evalue double precision
+CREATE TABLE "identity_xref" (
+  "object_xref_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL DEFAULT 0,
+  "xref_identity" integer,
+  "ensembl_identity" integer,
+  "xref_start" integer,
+  "xref_end" integer,
+  "ensembl_start" integer,
+  "ensembl_end" integer,
+  "cigar_line" text,
+  "score" double precision,
+  "evalue" double precision
 );
 
 --
--- Table: interpro
+-- Table: "interpro"
 --
-CREATE TABLE interpro (
-  interpro_ac varchar(40) NOT NULL DEFAULT '',
-  id varchar(40) NOT NULL
+CREATE TABLE "interpro" (
+  "interpro_ac" varchar(40) NOT NULL DEFAULT '',
+  "id" varchar(40) NOT NULL
 );
 
-CREATE UNIQUE INDEX accession_idx ON interpro (interpro_ac, id);
+CREATE UNIQUE INDEX "accession_idx" ON "interpro" ("interpro_ac", "id");
 
 --
--- Table: intron_supporting_evidence
+-- Table: "intron_supporting_evidence"
 --
-CREATE TABLE intron_supporting_evidence (
-  intron_supporting_evidence_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  analysis_id smallint NOT NULL,
-  seq_region_id integer NOT NULL,
-  seq_region_start integer NOT NULL,
-  seq_region_end integer NOT NULL,
-  seq_region_strand tinyint NOT NULL,
-  hit_name varchar(100) NOT NULL,
-  score decimal(10,3),
-  score_type enum DEFAULT 'NONE',
-  is_splice_canonical tinyint NOT NULL DEFAULT 0
+CREATE TABLE "intron_supporting_evidence" (
+  "intron_supporting_evidence_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "analysis_id" smallint NOT NULL,
+  "seq_region_id" integer NOT NULL,
+  "seq_region_start" integer NOT NULL,
+  "seq_region_end" integer NOT NULL,
+  "seq_region_strand" tinyint NOT NULL,
+  "hit_name" varchar(100) NOT NULL,
+  "score" decimal(10,3),
+  "score_type" enum DEFAULT 'NONE',
+  "is_splice_canonical" tinyint NOT NULL DEFAULT 0
 );
 
-CREATE UNIQUE INDEX analysis_id02 ON intron_supporting_evidence (analysis_id, seq_region_id, seq_region_start, seq_region_end, seq_region_strand, hit_name);
+CREATE UNIQUE INDEX "analysis_id02" ON "intron_supporting_evidence" ("analysis_id", "seq_region_id", "seq_region_start", "seq_region_end", "seq_region_strand", "hit_name");
 
 --
--- Table: karyotype
+-- Table: "karyotype"
 --
-CREATE TABLE karyotype (
-  karyotype_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  band varchar(40),
-  stain varchar(40)
+CREATE TABLE "karyotype" (
+  "karyotype_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "band" varchar(40),
+  "stain" varchar(40)
 );
 
 --
--- Table: map
+-- Table: "map"
 --
-CREATE TABLE map (
-  map_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  map_name varchar(30) NOT NULL DEFAULT ''
+CREATE TABLE "map" (
+  "map_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "map_name" varchar(30) NOT NULL DEFAULT ''
 );
 
 --
--- Table: mapping_session
+-- Table: "mapping_session"
 --
-CREATE TABLE mapping_session (
-  mapping_session_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  old_db_name varchar(80) NOT NULL DEFAULT '',
-  new_db_name varchar(80) NOT NULL DEFAULT '',
-  old_release varchar(5) NOT NULL DEFAULT '',
-  new_release varchar(5) NOT NULL DEFAULT '',
-  old_assembly varchar(20) NOT NULL DEFAULT '',
-  new_assembly varchar(20) NOT NULL DEFAULT '',
-  created datetime
+CREATE TABLE "mapping_session" (
+  "mapping_session_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "old_db_name" varchar(80) NOT NULL DEFAULT '',
+  "new_db_name" varchar(80) NOT NULL DEFAULT '',
+  "old_release" varchar(5) NOT NULL DEFAULT '',
+  "new_release" varchar(5) NOT NULL DEFAULT '',
+  "old_assembly" varchar(20) NOT NULL DEFAULT '',
+  "new_assembly" varchar(20) NOT NULL DEFAULT '',
+  "created" datetime
 );
 
 --
--- Table: mapping_set
+-- Table: "mapping_set"
 --
-CREATE TABLE mapping_set (
-  mapping_set_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  internal_schema_build varchar(20) NOT NULL,
-  external_schema_build varchar(20) NOT NULL
+CREATE TABLE "mapping_set" (
+  "mapping_set_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "internal_schema_build" varchar(20) NOT NULL,
+  "external_schema_build" varchar(20) NOT NULL
 );
 
-CREATE UNIQUE INDEX mapping_idx ON mapping_set (internal_schema_build, external_schema_build);
+CREATE UNIQUE INDEX "mapping_idx" ON "mapping_set" ("internal_schema_build", "external_schema_build");
 
 --
--- Table: marker
+-- Table: "marker"
 --
-CREATE TABLE marker (
-  marker_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  display_marker_synonym_id integer,
-  left_primer varchar(100) NOT NULL DEFAULT '',
-  right_primer varchar(100) NOT NULL DEFAULT '',
-  min_primer_dist integer NOT NULL DEFAULT 0,
-  max_primer_dist integer NOT NULL DEFAULT 0,
-  priority integer,
-  type enum
+CREATE TABLE "marker" (
+  "marker_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "display_marker_synonym_id" integer,
+  "left_primer" varchar(100) NOT NULL DEFAULT '',
+  "right_primer" varchar(100) NOT NULL DEFAULT '',
+  "min_primer_dist" integer NOT NULL DEFAULT 0,
+  "max_primer_dist" integer NOT NULL DEFAULT 0,
+  "priority" integer,
+  "type" enum
 );
 
 --
--- Table: marker_feature
+-- Table: "marker_feature"
 --
-CREATE TABLE marker_feature (
-  marker_feature_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  marker_id integer NOT NULL DEFAULT 0,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  analysis_id integer NOT NULL DEFAULT 0,
-  map_weight integer
+CREATE TABLE "marker_feature" (
+  "marker_feature_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "marker_id" integer NOT NULL DEFAULT 0,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "analysis_id" integer NOT NULL DEFAULT 0,
+  "map_weight" integer
 );
 
 --
--- Table: marker_map_location
+-- Table: "marker_map_location"
 --
-CREATE TABLE marker_map_location (
-  marker_id integer NOT NULL DEFAULT 0,
-  map_id integer NOT NULL DEFAULT 0,
-  chromosome_name varchar(15) NOT NULL DEFAULT '',
-  marker_synonym_id integer NOT NULL DEFAULT 0,
-  position varchar(15) NOT NULL DEFAULT '',
-  lod_score double precision,
-  PRIMARY KEY (marker_id, map_id)
+CREATE TABLE "marker_map_location" (
+  "marker_id" integer NOT NULL DEFAULT 0,
+  "map_id" integer NOT NULL DEFAULT 0,
+  "chromosome_name" varchar(15) NOT NULL DEFAULT '',
+  "marker_synonym_id" integer NOT NULL DEFAULT 0,
+  "position" varchar(15) NOT NULL DEFAULT '',
+  "lod_score" double precision,
+  PRIMARY KEY ("marker_id", "map_id")
 );
 
 --
--- Table: marker_synonym
+-- Table: "marker_synonym"
 --
-CREATE TABLE marker_synonym (
-  marker_synonym_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  marker_id integer NOT NULL DEFAULT 0,
-  source varchar(20),
-  name varchar(30)
+CREATE TABLE "marker_synonym" (
+  "marker_synonym_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "marker_id" integer NOT NULL DEFAULT 0,
+  "source" varchar(20),
+  "name" varchar(30)
 );
 
 --
--- Table: meta
+-- Table: "meta"
 --
-CREATE TABLE meta (
-  meta_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  species_id integer DEFAULT 1,
-  meta_key varchar(40) NOT NULL,
-  meta_value varchar(255) NOT NULL
+CREATE TABLE "meta" (
+  "meta_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "species_id" integer DEFAULT 1,
+  "meta_key" varchar(40) NOT NULL,
+  "meta_value" varchar(255) NOT NULL
 );
 
-CREATE UNIQUE INDEX species_key_value_idx ON meta (species_id, meta_key, meta_value);
+CREATE UNIQUE INDEX "species_key_value_idx" ON "meta" ("species_id", "meta_key", "meta_value");
 
 --
--- Table: meta_coord
+-- Table: "meta_coord"
 --
-CREATE TABLE meta_coord (
-  table_name varchar(40) NOT NULL DEFAULT '',
-  coord_system_id integer NOT NULL DEFAULT 0,
-  max_length integer
+CREATE TABLE "meta_coord" (
+  "table_name" varchar(40) NOT NULL DEFAULT '',
+  "coord_system_id" integer NOT NULL DEFAULT 0,
+  "max_length" integer
 );
 
-CREATE UNIQUE INDEX cs_table_name_idx ON meta_coord (coord_system_id, table_name);
+CREATE UNIQUE INDEX "cs_table_name_idx" ON "meta_coord" ("coord_system_id", "table_name");
 
 --
--- Table: misc_attrib
+-- Table: "misc_attrib"
 --
-CREATE TABLE misc_attrib (
-  misc_feature_id integer NOT NULL DEFAULT 0,
-  attrib_type_id smallint NOT NULL DEFAULT 0,
-  value text NOT NULL
+CREATE TABLE "misc_attrib" (
+  "misc_feature_id" integer NOT NULL DEFAULT 0,
+  "attrib_type_id" smallint NOT NULL DEFAULT 0,
+  "value" text NOT NULL
 );
 
-CREATE UNIQUE INDEX misc_attribx ON misc_attrib (misc_feature_id, attrib_type_id, value);
+CREATE UNIQUE INDEX "misc_attribx" ON "misc_attrib" ("misc_feature_id", "attrib_type_id", "value");
 
 --
--- Table: misc_feature
+-- Table: "misc_feature"
 --
-CREATE TABLE misc_feature (
-  misc_feature_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  seq_region_strand tinyint NOT NULL DEFAULT 0
+CREATE TABLE "misc_feature" (
+  "misc_feature_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "seq_region_strand" tinyint NOT NULL DEFAULT 0
 );
 
 --
--- Table: misc_feature_misc_set
+-- Table: "misc_feature_misc_set"
 --
-CREATE TABLE misc_feature_misc_set (
-  misc_feature_id integer NOT NULL DEFAULT 0,
-  misc_set_id smallint NOT NULL DEFAULT 0,
-  PRIMARY KEY (misc_feature_id, misc_set_id)
+CREATE TABLE "misc_feature_misc_set" (
+  "misc_feature_id" integer NOT NULL DEFAULT 0,
+  "misc_set_id" smallint NOT NULL DEFAULT 0,
+  PRIMARY KEY ("misc_feature_id", "misc_set_id")
 );
 
 --
--- Table: misc_set
+-- Table: "misc_set"
 --
-CREATE TABLE misc_set (
-  misc_set_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  code varchar(25) NOT NULL DEFAULT '',
-  name varchar(255) NOT NULL DEFAULT '',
-  description text NOT NULL,
-  max_length integer NOT NULL DEFAULT 0
+CREATE TABLE "misc_set" (
+  "misc_set_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "code" varchar(25) NOT NULL DEFAULT '',
+  "name" varchar(255) NOT NULL DEFAULT '',
+  "description" text NOT NULL,
+  "max_length" integer NOT NULL DEFAULT 0
 );
 
-CREATE UNIQUE INDEX code_idx02 ON misc_set (code);
+CREATE UNIQUE INDEX "code_idx02" ON "misc_set" ("code");
 
 --
--- Table: object_xref
+-- Table: "object_xref"
 --
-CREATE TABLE object_xref (
-  object_xref_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  ensembl_id integer NOT NULL DEFAULT 0,
-  ensembl_object_type enum NOT NULL DEFAULT 'RawContig',
-  xref_id integer NOT NULL,
-  linkage_annotation varchar(255),
-  analysis_id smallint
+CREATE TABLE "object_xref" (
+  "object_xref_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "ensembl_id" integer NOT NULL DEFAULT 0,
+  "ensembl_object_type" enum NOT NULL DEFAULT 'RawContig',
+  "xref_id" integer NOT NULL,
+  "linkage_annotation" varchar(255),
+  "analysis_id" smallint
 );
 
-CREATE UNIQUE INDEX xref_idx ON object_xref (xref_id, ensembl_object_type, ensembl_id, analysis_id);
+CREATE UNIQUE INDEX "xref_idx" ON "object_xref" ("xref_id", "ensembl_object_type", "ensembl_id", "analysis_id");
 
 --
--- Table: ontology_xref
+-- Table: "ontology_xref"
 --
-CREATE TABLE ontology_xref (
-  object_xref_id integer NOT NULL DEFAULT 0,
-  linkage_type varchar(3),
-  source_xref_id integer
+CREATE TABLE "ontology_xref" (
+  "object_xref_id" integer NOT NULL DEFAULT 0,
+  "linkage_type" varchar(3),
+  "source_xref_id" integer
 );
 
-CREATE UNIQUE INDEX object_source_type_idx ON ontology_xref (object_xref_id, source_xref_id, linkage_type);
+CREATE UNIQUE INDEX "object_source_type_idx" ON "ontology_xref" ("object_xref_id", "source_xref_id", "linkage_type");
 
 --
--- Table: operon
+-- Table: "operon"
 --
-CREATE TABLE operon (
-  operon_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL,
-  seq_region_start integer NOT NULL,
-  seq_region_end integer NOT NULL,
-  seq_region_strand tinyint NOT NULL,
-  display_label varchar(255),
-  analysis_id smallint NOT NULL,
-  stable_id varchar(128),
-  version smallint,
-  created_date datetime,
-  modified_date datetime
+CREATE TABLE "operon" (
+  "operon_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL,
+  "seq_region_start" integer NOT NULL,
+  "seq_region_end" integer NOT NULL,
+  "seq_region_strand" tinyint NOT NULL,
+  "display_label" varchar(255),
+  "analysis_id" smallint NOT NULL,
+  "stable_id" varchar(128),
+  "version" smallint,
+  "created_date" datetime,
+  "modified_date" datetime
 );
 
 --
--- Table: operon_transcript
+-- Table: "operon_transcript"
 --
-CREATE TABLE operon_transcript (
-  operon_transcript_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL,
-  seq_region_start integer NOT NULL,
-  seq_region_end integer NOT NULL,
-  seq_region_strand tinyint NOT NULL,
-  operon_id integer NOT NULL,
-  display_label varchar(255),
-  analysis_id smallint NOT NULL,
-  stable_id varchar(128),
-  version smallint,
-  created_date datetime,
-  modified_date datetime
+CREATE TABLE "operon_transcript" (
+  "operon_transcript_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL,
+  "seq_region_start" integer NOT NULL,
+  "seq_region_end" integer NOT NULL,
+  "seq_region_strand" tinyint NOT NULL,
+  "operon_id" integer NOT NULL,
+  "display_label" varchar(255),
+  "analysis_id" smallint NOT NULL,
+  "stable_id" varchar(128),
+  "version" smallint,
+  "created_date" datetime,
+  "modified_date" datetime
 );
 
 --
--- Table: operon_transcript_gene
+-- Table: "operon_transcript_gene"
 --
-CREATE TABLE operon_transcript_gene (
-  operon_transcript_id integer,
-  gene_id integer
+CREATE TABLE "operon_transcript_gene" (
+  "operon_transcript_id" integer,
+  "gene_id" integer
 );
 
 --
--- Table: peptide_archive
+-- Table: "peptide_archive"
 --
-CREATE TABLE peptide_archive (
-  peptide_archive_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  md5_checksum varchar(32),
-  peptide_seq mediumtext NOT NULL
+CREATE TABLE "peptide_archive" (
+  "peptide_archive_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "md5_checksum" varchar(32),
+  "peptide_seq" mediumtext NOT NULL
 );
 
 --
--- Table: prediction_exon
+-- Table: "prediction_exon"
 --
-CREATE TABLE prediction_exon (
-  prediction_exon_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  prediction_transcript_id integer NOT NULL DEFAULT 0,
-  exon_rank smallint NOT NULL DEFAULT 0,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  seq_region_strand tinyint NOT NULL DEFAULT 0,
-  start_phase tinyint NOT NULL DEFAULT 0,
-  score double precision,
-  p_value double precision
+CREATE TABLE "prediction_exon" (
+  "prediction_exon_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "prediction_transcript_id" integer NOT NULL DEFAULT 0,
+  "exon_rank" smallint NOT NULL DEFAULT 0,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "seq_region_strand" tinyint NOT NULL DEFAULT 0,
+  "start_phase" tinyint NOT NULL DEFAULT 0,
+  "score" double precision,
+  "p_value" double precision
 );
 
 --
--- Table: prediction_transcript
+-- Table: "prediction_transcript"
 --
-CREATE TABLE prediction_transcript (
-  prediction_transcript_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  seq_region_strand tinyint NOT NULL DEFAULT 0,
-  analysis_id integer,
-  display_label varchar(255)
+CREATE TABLE "prediction_transcript" (
+  "prediction_transcript_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "seq_region_strand" tinyint NOT NULL DEFAULT 0,
+  "analysis_id" integer,
+  "display_label" varchar(255)
 );
 
 --
--- Table: protein_align_feature
+-- Table: "protein_align_feature"
 --
-CREATE TABLE protein_align_feature (
-  protein_align_feature_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  seq_region_strand tinyint NOT NULL DEFAULT 1,
-  hit_start integer NOT NULL DEFAULT 0,
-  hit_end integer NOT NULL DEFAULT 0,
-  hit_name varchar(40) NOT NULL DEFAULT '',
-  analysis_id integer NOT NULL DEFAULT 0,
-  score double precision,
-  evalue double precision,
-  perc_ident float,
-  cigar_line text,
-  external_db_id smallint,
-  hcoverage double precision,
-  align_type enum DEFAULT 'ensembl'
+CREATE TABLE "protein_align_feature" (
+  "protein_align_feature_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "seq_region_strand" tinyint NOT NULL DEFAULT 1,
+  "hit_start" integer NOT NULL DEFAULT 0,
+  "hit_end" integer NOT NULL DEFAULT 0,
+  "hit_name" varchar(40) NOT NULL DEFAULT '',
+  "analysis_id" integer NOT NULL DEFAULT 0,
+  "score" double precision,
+  "evalue" double precision,
+  "perc_ident" float,
+  "cigar_line" text,
+  "external_db_id" smallint,
+  "hcoverage" double precision,
+  "align_type" enum DEFAULT 'ensembl'
 );
 
 --
--- Table: protein_feature
+-- Table: "protein_feature"
 --
-CREATE TABLE protein_feature (
-  protein_feature_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  translation_id integer NOT NULL DEFAULT 0,
-  seq_start integer NOT NULL DEFAULT 0,
-  seq_end integer NOT NULL DEFAULT 0,
-  hit_start integer NOT NULL DEFAULT 0,
-  hit_end integer NOT NULL DEFAULT 0,
-  hit_name varchar(40) NOT NULL,
-  analysis_id integer NOT NULL DEFAULT 0,
-  score double precision NOT NULL DEFAULT 0,
-  evalue double precision,
-  perc_ident float,
-  external_data text,
-  hit_description text,
-  cigar_line text,
-  align_type enum
+CREATE TABLE "protein_feature" (
+  "protein_feature_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "translation_id" integer NOT NULL DEFAULT 0,
+  "seq_start" integer NOT NULL DEFAULT 0,
+  "seq_end" integer NOT NULL DEFAULT 0,
+  "hit_start" integer NOT NULL DEFAULT 0,
+  "hit_end" integer NOT NULL DEFAULT 0,
+  "hit_name" varchar(40) NOT NULL,
+  "analysis_id" integer NOT NULL DEFAULT 0,
+  "score" double precision NOT NULL DEFAULT 0,
+  "evalue" double precision,
+  "perc_ident" float,
+  "external_data" text,
+  "hit_description" text,
+  "cigar_line" text,
+  "align_type" enum
 );
 
-CREATE UNIQUE INDEX aln_idx ON protein_feature (translation_id, hit_name, seq_start, seq_end, hit_start, hit_end, analysis_id);
+CREATE UNIQUE INDEX "aln_idx" ON "protein_feature" ("translation_id", "hit_name", "seq_start", "seq_end", "hit_start", "hit_end", "analysis_id");
 
 --
--- Table: repeat_consensus
+-- Table: "repeat_consensus"
 --
-CREATE TABLE repeat_consensus (
-  repeat_consensus_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  repeat_name varchar(255) NOT NULL DEFAULT '',
-  repeat_class varchar(100) NOT NULL DEFAULT '',
-  repeat_type varchar(40) NOT NULL DEFAULT '',
-  repeat_consensus text
+CREATE TABLE "repeat_consensus" (
+  "repeat_consensus_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "repeat_name" varchar(255) NOT NULL DEFAULT '',
+  "repeat_class" varchar(100) NOT NULL DEFAULT '',
+  "repeat_type" varchar(40) NOT NULL DEFAULT '',
+  "repeat_consensus" text
 );
 
 --
--- Table: repeat_feature
+-- Table: "repeat_feature"
 --
-CREATE TABLE repeat_feature (
-  repeat_feature_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  seq_region_strand tinyint NOT NULL DEFAULT 1,
-  repeat_start integer NOT NULL DEFAULT 0,
-  repeat_end integer NOT NULL DEFAULT 0,
-  repeat_consensus_id integer NOT NULL DEFAULT 0,
-  analysis_id integer NOT NULL DEFAULT 0,
-  score double precision
+CREATE TABLE "repeat_feature" (
+  "repeat_feature_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "seq_region_strand" tinyint NOT NULL DEFAULT 1,
+  "repeat_start" integer NOT NULL DEFAULT 0,
+  "repeat_end" integer NOT NULL DEFAULT 0,
+  "repeat_consensus_id" integer NOT NULL DEFAULT 0,
+  "analysis_id" integer NOT NULL DEFAULT 0,
+  "score" double precision
 );
 
 --
--- Table: seq_region
+-- Table: "seq_region"
 --
-CREATE TABLE seq_region (
-  seq_region_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  name varchar(255) NOT NULL,
-  coord_system_id integer NOT NULL DEFAULT 0,
-  length integer NOT NULL DEFAULT 0
+CREATE TABLE "seq_region" (
+  "seq_region_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "name" varchar(255) NOT NULL,
+  "coord_system_id" integer NOT NULL DEFAULT 0,
+  "length" integer NOT NULL DEFAULT 0
 );
 
-CREATE UNIQUE INDEX name_cs_idx ON seq_region (name, coord_system_id);
+CREATE UNIQUE INDEX "name_cs_idx" ON "seq_region" ("name", "coord_system_id");
 
 --
--- Table: seq_region_attrib
+-- Table: "seq_region_attrib"
 --
-CREATE TABLE seq_region_attrib (
-  seq_region_id integer NOT NULL DEFAULT 0,
-  attrib_type_id smallint NOT NULL DEFAULT 0,
-  value text NOT NULL
+CREATE TABLE "seq_region_attrib" (
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "attrib_type_id" smallint NOT NULL DEFAULT 0,
+  "value" text NOT NULL
 );
 
-CREATE UNIQUE INDEX region_attribx ON seq_region_attrib (seq_region_id, attrib_type_id, value);
+CREATE UNIQUE INDEX "region_attribx" ON "seq_region_attrib" ("seq_region_id", "attrib_type_id", "value");
 
 --
--- Table: seq_region_mapping
+-- Table: "seq_region_mapping"
 --
-CREATE TABLE seq_region_mapping (
-  external_seq_region_id integer NOT NULL,
-  internal_seq_region_id integer NOT NULL,
-  mapping_set_id integer NOT NULL
+CREATE TABLE "seq_region_mapping" (
+  "external_seq_region_id" integer NOT NULL,
+  "internal_seq_region_id" integer NOT NULL,
+  "mapping_set_id" integer NOT NULL
 );
 
 --
--- Table: seq_region_synonym
+-- Table: "seq_region_synonym"
 --
-CREATE TABLE seq_region_synonym (
-  seq_region_synonym_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL,
-  synonym varchar(250) NOT NULL,
-  external_db_id smallint
+CREATE TABLE "seq_region_synonym" (
+  "seq_region_synonym_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL,
+  "synonym" varchar(250) NOT NULL,
+  "external_db_id" smallint
 );
 
-CREATE UNIQUE INDEX syn_idx ON seq_region_synonym (synonym, seq_region_id);
+CREATE UNIQUE INDEX "syn_idx" ON "seq_region_synonym" ("synonym", "seq_region_id");
 
 --
--- Table: simple_feature
+-- Table: "simple_feature"
 --
-CREATE TABLE simple_feature (
-  simple_feature_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  seq_region_strand tinyint NOT NULL DEFAULT 0,
-  display_label varchar(40) NOT NULL DEFAULT '',
-  analysis_id integer NOT NULL DEFAULT 0,
-  score double precision
+CREATE TABLE "simple_feature" (
+  "simple_feature_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "seq_region_strand" tinyint NOT NULL DEFAULT 0,
+  "display_label" varchar(40) NOT NULL DEFAULT '',
+  "analysis_id" integer NOT NULL DEFAULT 0,
+  "score" double precision
 );
 
 --
--- Table: stable_id_event
+-- Table: "stable_id_event"
 --
-CREATE TABLE stable_id_event (
-  old_stable_id varchar(128),
-  old_version smallint,
-  new_stable_id varchar(128),
-  new_version smallint,
-  mapping_session_id integer NOT NULL DEFAULT 0,
-  type enum NOT NULL DEFAULT 'gene',
-  score float NOT NULL DEFAULT 0
+CREATE TABLE "stable_id_event" (
+  "old_stable_id" varchar(128),
+  "old_version" smallint,
+  "new_stable_id" varchar(128),
+  "new_version" smallint,
+  "mapping_session_id" integer NOT NULL DEFAULT 0,
+  "type" enum NOT NULL DEFAULT 'gene',
+  "score" float NOT NULL DEFAULT 0
 );
 
-CREATE UNIQUE INDEX uni_idx ON stable_id_event (mapping_session_id, old_stable_id, old_version, new_stable_id, new_version, type);
+CREATE UNIQUE INDEX "uni_idx" ON "stable_id_event" ("mapping_session_id", "old_stable_id", "old_version", "new_stable_id", "new_version", "type");
 
 --
--- Table: supporting_feature
+-- Table: "supporting_feature"
 --
-CREATE TABLE supporting_feature (
-  exon_id integer NOT NULL DEFAULT 0,
-  feature_type enum,
-  feature_id integer NOT NULL DEFAULT 0
+CREATE TABLE "supporting_feature" (
+  "exon_id" integer NOT NULL DEFAULT 0,
+  "feature_type" enum,
+  "feature_id" integer NOT NULL DEFAULT 0
 );
 
-CREATE UNIQUE INDEX all_idx02 ON supporting_feature (exon_id, feature_type, feature_id);
+CREATE UNIQUE INDEX "all_idx02" ON "supporting_feature" ("exon_id", "feature_type", "feature_id");
 
 --
--- Table: transcript
+-- Table: "transcript"
 --
-CREATE TABLE transcript (
-  transcript_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  gene_id integer,
-  analysis_id smallint NOT NULL,
-  seq_region_id integer NOT NULL,
-  seq_region_start integer NOT NULL,
-  seq_region_end integer NOT NULL,
-  seq_region_strand tinyint NOT NULL,
-  display_xref_id integer,
-  source varchar(40) NOT NULL DEFAULT 'ensembl',
-  biotype varchar(40) NOT NULL,
-  description text,
-  is_current tinyint NOT NULL DEFAULT 1,
-  canonical_translation_id integer,
-  stable_id varchar(128),
-  version smallint,
-  created_date datetime,
-  modified_date datetime
+CREATE TABLE "transcript" (
+  "transcript_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "gene_id" integer,
+  "analysis_id" smallint NOT NULL,
+  "seq_region_id" integer NOT NULL,
+  "seq_region_start" integer NOT NULL,
+  "seq_region_end" integer NOT NULL,
+  "seq_region_strand" tinyint NOT NULL,
+  "display_xref_id" integer,
+  "source" varchar(40) NOT NULL DEFAULT 'ensembl',
+  "biotype" varchar(40) NOT NULL,
+  "description" text,
+  "is_current" tinyint NOT NULL DEFAULT 1,
+  "canonical_translation_id" integer,
+  "stable_id" varchar(128),
+  "version" smallint,
+  "created_date" datetime,
+  "modified_date" datetime
 );
 
-CREATE UNIQUE INDEX canonical_translation_idx ON transcript (canonical_translation_id);
+CREATE UNIQUE INDEX "canonical_translation_idx" ON "transcript" ("canonical_translation_id");
 
 --
--- Table: transcript_attrib
+-- Table: "transcript_attrib"
 --
-CREATE TABLE transcript_attrib (
-  transcript_id integer NOT NULL DEFAULT 0,
-  attrib_type_id smallint NOT NULL DEFAULT 0,
-  value text NOT NULL
+CREATE TABLE "transcript_attrib" (
+  "transcript_id" integer NOT NULL DEFAULT 0,
+  "attrib_type_id" smallint NOT NULL DEFAULT 0,
+  "value" text NOT NULL
 );
 
-CREATE UNIQUE INDEX transcript_attribx ON transcript_attrib (transcript_id, attrib_type_id, value);
+CREATE UNIQUE INDEX "transcript_attribx" ON "transcript_attrib" ("transcript_id", "attrib_type_id", "value");
 
 --
--- Table: transcript_intron_supporting_evidence
+-- Table: "transcript_intron_supporting_evidence"
 --
-CREATE TABLE transcript_intron_supporting_evidence (
-  transcript_id integer NOT NULL,
-  intron_supporting_evidence_id integer NOT NULL,
-  previous_exon_id integer NOT NULL,
-  next_exon_id integer NOT NULL,
-  PRIMARY KEY (intron_supporting_evidence_id, transcript_id)
+CREATE TABLE "transcript_intron_supporting_evidence" (
+  "transcript_id" integer NOT NULL,
+  "intron_supporting_evidence_id" integer NOT NULL,
+  "previous_exon_id" integer NOT NULL,
+  "next_exon_id" integer NOT NULL,
+  PRIMARY KEY ("intron_supporting_evidence_id", "transcript_id")
 );
 
 --
--- Table: transcript_supporting_feature
+-- Table: "transcript_supporting_feature"
 --
-CREATE TABLE transcript_supporting_feature (
-  transcript_id integer NOT NULL DEFAULT 0,
-  feature_type enum,
-  feature_id integer NOT NULL DEFAULT 0
+CREATE TABLE "transcript_supporting_feature" (
+  "transcript_id" integer NOT NULL DEFAULT 0,
+  "feature_type" enum,
+  "feature_id" integer NOT NULL DEFAULT 0
 );
 
-CREATE UNIQUE INDEX all_idx03 ON transcript_supporting_feature (transcript_id, feature_type, feature_id);
+CREATE UNIQUE INDEX "all_idx03" ON "transcript_supporting_feature" ("transcript_id", "feature_type", "feature_id");
 
 --
--- Table: translation
+-- Table: "translation"
 --
-CREATE TABLE translation (
-  translation_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  transcript_id integer NOT NULL,
-  seq_start integer NOT NULL,
-  start_exon_id integer NOT NULL,
-  seq_end integer NOT NULL,
-  end_exon_id integer NOT NULL,
-  stable_id varchar(128),
-  version smallint,
-  created_date datetime,
-  modified_date datetime
+CREATE TABLE "translation" (
+  "translation_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "transcript_id" integer NOT NULL,
+  "seq_start" integer NOT NULL,
+  "start_exon_id" integer NOT NULL,
+  "seq_end" integer NOT NULL,
+  "end_exon_id" integer NOT NULL,
+  "stable_id" varchar(128),
+  "version" smallint,
+  "created_date" datetime,
+  "modified_date" datetime
 );
 
 --
--- Table: translation_attrib
+-- Table: "translation_attrib"
 --
-CREATE TABLE translation_attrib (
-  translation_id integer NOT NULL DEFAULT 0,
-  attrib_type_id smallint NOT NULL DEFAULT 0,
-  value text NOT NULL
+CREATE TABLE "translation_attrib" (
+  "translation_id" integer NOT NULL DEFAULT 0,
+  "attrib_type_id" smallint NOT NULL DEFAULT 0,
+  "value" text NOT NULL
 );
 
-CREATE UNIQUE INDEX translation_attribx ON translation_attrib (translation_id, attrib_type_id, value);
+CREATE UNIQUE INDEX "translation_attribx" ON "translation_attrib" ("translation_id", "attrib_type_id", "value");
 
 --
--- Table: unmapped_object
+-- Table: "unmapped_object"
 --
-CREATE TABLE unmapped_object (
-  unmapped_object_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  type enum NOT NULL,
-  analysis_id integer NOT NULL,
-  external_db_id integer,
-  identifier varchar(255) NOT NULL,
-  unmapped_reason_id integer NOT NULL,
-  query_score double precision,
-  target_score double precision,
-  ensembl_id integer DEFAULT 0,
-  ensembl_object_type enum DEFAULT 'RawContig',
-  parent varchar(255)
+CREATE TABLE "unmapped_object" (
+  "unmapped_object_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "type" enum NOT NULL,
+  "analysis_id" integer NOT NULL,
+  "external_db_id" integer,
+  "identifier" varchar(255) NOT NULL,
+  "unmapped_reason_id" integer NOT NULL,
+  "query_score" double precision,
+  "target_score" double precision,
+  "ensembl_id" integer DEFAULT 0,
+  "ensembl_object_type" enum DEFAULT 'RawContig',
+  "parent" varchar(255)
 );
 
-CREATE UNIQUE INDEX unique_unmapped_obj_idx ON unmapped_object (ensembl_id, ensembl_object_type, identifier, unmapped_reason_id, parent, external_db_id);
+CREATE UNIQUE INDEX "unique_unmapped_obj_idx" ON "unmapped_object" ("ensembl_id", "ensembl_object_type", "identifier", "unmapped_reason_id", "parent", "external_db_id");
 
 --
--- Table: unmapped_reason
+-- Table: "unmapped_reason"
 --
-CREATE TABLE unmapped_reason (
-  unmapped_reason_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  summary_description varchar(255),
-  full_description varchar(255)
+CREATE TABLE "unmapped_reason" (
+  "unmapped_reason_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "summary_description" varchar(255),
+  "full_description" varchar(255)
 );
 
 --
--- Table: xref
+-- Table: "xref"
 --
-CREATE TABLE xref (
-  xref_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  external_db_id integer NOT NULL,
-  dbprimary_acc varchar(512) NOT NULL,
-  display_label varchar(512) NOT NULL,
-  version varchar(10),
-  description text,
-  info_type enum NOT NULL DEFAULT 'NONE',
-  info_text varchar(255) NOT NULL DEFAULT ''
+CREATE TABLE "xref" (
+  "xref_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "external_db_id" integer NOT NULL,
+  "dbprimary_acc" varchar(512) NOT NULL,
+  "display_label" varchar(512) NOT NULL,
+  "version" varchar(10),
+  "description" text,
+  "info_type" enum NOT NULL DEFAULT 'NONE',
+  "info_text" varchar(255) NOT NULL DEFAULT ''
 );
 
-CREATE UNIQUE INDEX id_index ON xref (dbprimary_acc, external_db_id, info_type, info_text, version);
+CREATE UNIQUE INDEX "id_index" ON "xref" ("dbprimary_acc", "external_db_id", "info_type", "info_text", "version");
 
 COMMIT;
diff --git a/modules/t/test-genome-DBs/test_collection/core/SQLite/table.sql b/modules/t/test-genome-DBs/test_collection/core/SQLite/table.sql
index f1344bfeb6b8db9bdbd44fe08a1ed21e913d2cc0..20f23d95c408a228f3cf0640e420ea9bb800999a 100644
--- a/modules/t/test-genome-DBs/test_collection/core/SQLite/table.sql
+++ b/modules/t/test-genome-DBs/test_collection/core/SQLite/table.sql
@@ -1,991 +1,991 @@
 -- 
 -- Created by SQL::Translator::Producer::SQLite
--- Created on Thu Jun 28 16:52:23 2018
+-- Created on Wed Sep 26 12:07:40 2018
 -- 
 
 BEGIN TRANSACTION;
 
 --
--- Table: alt_allele
+-- Table: "alt_allele"
 --
-CREATE TABLE alt_allele (
-  alt_allele_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  alt_allele_group_id integer NOT NULL,
-  gene_id integer NOT NULL
+CREATE TABLE "alt_allele" (
+  "alt_allele_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "alt_allele_group_id" integer NOT NULL,
+  "gene_id" integer NOT NULL
 );
 
-CREATE UNIQUE INDEX gene_idx ON alt_allele (gene_id);
+CREATE UNIQUE INDEX "gene_idx" ON "alt_allele" ("gene_id");
 
 --
--- Table: alt_allele_attrib
+-- Table: "alt_allele_attrib"
 --
-CREATE TABLE alt_allele_attrib (
-  alt_allele_id integer,
-  attrib enum
+CREATE TABLE "alt_allele_attrib" (
+  "alt_allele_id" integer,
+  "attrib" enum
 );
 
 --
--- Table: alt_allele_group
+-- Table: "alt_allele_group"
 --
-CREATE TABLE alt_allele_group (
-  alt_allele_group_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL
+CREATE TABLE "alt_allele_group" (
+  "alt_allele_group_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL
 );
 
 --
--- Table: analysis
+-- Table: "analysis"
 --
-CREATE TABLE analysis (
-  analysis_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  created datetime,
-  logic_name varchar(40) NOT NULL DEFAULT '',
-  db varchar(120),
-  db_version varchar(40),
-  db_file varchar(120),
-  program varchar(80),
-  program_version varchar(40),
-  program_file varchar(80),
-  parameters text,
-  module varchar(80),
-  module_version varchar(40),
-  gff_source varchar(40),
-  gff_feature varchar(40)
+CREATE TABLE "analysis" (
+  "analysis_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "created" datetime,
+  "logic_name" varchar(40) NOT NULL DEFAULT '',
+  "db" varchar(120),
+  "db_version" varchar(40),
+  "db_file" varchar(120),
+  "program" varchar(80),
+  "program_version" varchar(40),
+  "program_file" varchar(80),
+  "parameters" text,
+  "module" varchar(80),
+  "module_version" varchar(40),
+  "gff_source" varchar(40),
+  "gff_feature" varchar(40)
 );
 
-CREATE UNIQUE INDEX logic_name_idx ON analysis (logic_name);
+CREATE UNIQUE INDEX "logic_name_idx" ON "analysis" ("logic_name");
 
 --
--- Table: analysis_description
+-- Table: "analysis_description"
 --
-CREATE TABLE analysis_description (
-  analysis_id integer NOT NULL DEFAULT 0,
-  description text,
-  display_label varchar(255),
-  displayable tinyint NOT NULL DEFAULT 1,
-  web_data text
+CREATE TABLE "analysis_description" (
+  "analysis_id" integer NOT NULL DEFAULT 0,
+  "description" text,
+  "display_label" varchar(255),
+  "displayable" tinyint NOT NULL DEFAULT 1,
+  "web_data" text
 );
 
-CREATE UNIQUE INDEX analysis_idx ON analysis_description (analysis_id);
+CREATE UNIQUE INDEX "analysis_idx" ON "analysis_description" ("analysis_id");
 
 --
--- Table: assembly
+-- Table: "assembly"
 --
-CREATE TABLE assembly (
-  asm_seq_region_id integer NOT NULL DEFAULT 0,
-  cmp_seq_region_id integer NOT NULL DEFAULT 0,
-  asm_start integer NOT NULL DEFAULT 0,
-  asm_end integer NOT NULL DEFAULT 0,
-  cmp_start integer NOT NULL DEFAULT 0,
-  cmp_end integer NOT NULL DEFAULT 0,
-  ori tinyint NOT NULL DEFAULT 0
+CREATE TABLE "assembly" (
+  "asm_seq_region_id" integer NOT NULL DEFAULT 0,
+  "cmp_seq_region_id" integer NOT NULL DEFAULT 0,
+  "asm_start" integer NOT NULL DEFAULT 0,
+  "asm_end" integer NOT NULL DEFAULT 0,
+  "cmp_start" integer NOT NULL DEFAULT 0,
+  "cmp_end" integer NOT NULL DEFAULT 0,
+  "ori" tinyint NOT NULL DEFAULT 0
 );
 
-CREATE UNIQUE INDEX all_idx ON assembly (asm_seq_region_id, cmp_seq_region_id, asm_start, asm_end, cmp_start, cmp_end, ori);
+CREATE UNIQUE INDEX "all_idx" ON "assembly" ("asm_seq_region_id", "cmp_seq_region_id", "asm_start", "asm_end", "cmp_start", "cmp_end", "ori");
 
 --
--- Table: assembly_exception
+-- Table: "assembly_exception"
 --
-CREATE TABLE assembly_exception (
-  assembly_exception_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  exc_type enum NOT NULL DEFAULT 'HAP',
-  exc_seq_region_id integer NOT NULL DEFAULT 0,
-  exc_seq_region_start integer NOT NULL DEFAULT 0,
-  exc_seq_region_end integer NOT NULL DEFAULT 0,
-  ori integer NOT NULL DEFAULT 0
+CREATE TABLE "assembly_exception" (
+  "assembly_exception_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "exc_type" enum NOT NULL DEFAULT 'HAP',
+  "exc_seq_region_id" integer NOT NULL DEFAULT 0,
+  "exc_seq_region_start" integer NOT NULL DEFAULT 0,
+  "exc_seq_region_end" integer NOT NULL DEFAULT 0,
+  "ori" integer NOT NULL DEFAULT 0
 );
 
 --
--- Table: associated_group
+-- Table: "associated_group"
 --
-CREATE TABLE associated_group (
-  associated_group_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  description varchar(128)
+CREATE TABLE "associated_group" (
+  "associated_group_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "description" varchar(128)
 );
 
 --
--- Table: associated_xref
+-- Table: "associated_xref"
 --
-CREATE TABLE associated_xref (
-  associated_xref_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  object_xref_id integer NOT NULL DEFAULT 0,
-  xref_id integer NOT NULL DEFAULT 0,
-  source_xref_id integer,
-  condition_type varchar(128),
-  associated_group_id integer,
-  rank integer DEFAULT 0
+CREATE TABLE "associated_xref" (
+  "associated_xref_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "object_xref_id" integer NOT NULL DEFAULT 0,
+  "xref_id" integer NOT NULL DEFAULT 0,
+  "source_xref_id" integer,
+  "condition_type" varchar(128),
+  "associated_group_id" integer,
+  "rank" integer DEFAULT 0
 );
 
-CREATE UNIQUE INDEX object_associated_source_type_idx ON associated_xref (object_xref_id, xref_id, source_xref_id, condition_type, associated_group_id);
+CREATE UNIQUE INDEX "object_associated_source_type_idx" ON "associated_xref" ("object_xref_id", "xref_id", "source_xref_id", "condition_type", "associated_group_id");
 
 --
--- Table: attrib_type
+-- Table: "attrib_type"
 --
-CREATE TABLE attrib_type (
-  attrib_type_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  code varchar(20) NOT NULL DEFAULT '',
-  name varchar(255) NOT NULL DEFAULT '',
-  description text
+CREATE TABLE "attrib_type" (
+  "attrib_type_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "code" varchar(20) NOT NULL DEFAULT '',
+  "name" varchar(255) NOT NULL DEFAULT '',
+  "description" text
 );
 
-CREATE UNIQUE INDEX code_idx ON attrib_type (code);
+CREATE UNIQUE INDEX "code_idx" ON "attrib_type" ("code");
 
 --
--- Table: biotype
+-- Table: "biotype"
 --
-CREATE TABLE biotype (
-  biotype_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  name varchar(64) NOT NULL,
-  object_type enum NOT NULL DEFAULT 'gene',
-  db_type varchar NOT NULL DEFAULT 'core',
-  attrib_type_id integer,
-  description text,
-  biotype_group enum,
-  so_acc varchar(64)
+CREATE TABLE "biotype" (
+  "biotype_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "name" varchar(64) NOT NULL,
+  "object_type" enum NOT NULL DEFAULT 'gene',
+  "db_type" varchar NOT NULL DEFAULT 'core',
+  "attrib_type_id" integer,
+  "description" text,
+  "biotype_group" enum,
+  "so_acc" varchar(64)
 );
 
-CREATE UNIQUE INDEX name_type_idx ON biotype (name, object_type);
+CREATE UNIQUE INDEX "name_type_idx" ON "biotype" ("name", "object_type");
 
 --
--- Table: coord_system
+-- Table: "coord_system"
 --
-CREATE TABLE coord_system (
-  coord_system_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  species_id integer NOT NULL DEFAULT 1,
-  name varchar(40) NOT NULL,
-  version varchar(255),
-  rank integer NOT NULL,
-  attrib varchar
+CREATE TABLE "coord_system" (
+  "coord_system_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "species_id" integer NOT NULL DEFAULT 1,
+  "name" varchar(40) NOT NULL,
+  "version" varchar(255),
+  "rank" integer NOT NULL,
+  "attrib" varchar
 );
 
-CREATE UNIQUE INDEX name_idx ON coord_system (name, version, species_id);
+CREATE UNIQUE INDEX "name_idx" ON "coord_system" ("name", "version", "species_id");
 
-CREATE UNIQUE INDEX rank_idx ON coord_system (rank, species_id);
+CREATE UNIQUE INDEX "rank_idx" ON "coord_system" ("rank", "species_id");
 
 --
--- Table: data_file
+-- Table: "data_file"
 --
-CREATE TABLE data_file (
-  data_file_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  coord_system_id integer NOT NULL,
-  analysis_id smallint NOT NULL,
-  name varchar(100) NOT NULL,
-  version_lock tinyint NOT NULL DEFAULT 0,
-  absolute tinyint NOT NULL DEFAULT 0,
-  url text,
-  file_type enum
+CREATE TABLE "data_file" (
+  "data_file_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "coord_system_id" integer NOT NULL,
+  "analysis_id" smallint NOT NULL,
+  "name" varchar(100) NOT NULL,
+  "version_lock" tinyint NOT NULL DEFAULT 0,
+  "absolute" tinyint NOT NULL DEFAULT 0,
+  "url" text,
+  "file_type" enum
 );
 
-CREATE UNIQUE INDEX df_unq_idx ON data_file (coord_system_id, analysis_id, name, file_type);
+CREATE UNIQUE INDEX "df_unq_idx" ON "data_file" ("coord_system_id", "analysis_id", "name", "file_type");
 
 --
--- Table: density_feature
+-- Table: "density_feature"
 --
-CREATE TABLE density_feature (
-  density_feature_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  density_type_id integer NOT NULL DEFAULT 0,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  density_value float NOT NULL DEFAULT 0
+CREATE TABLE "density_feature" (
+  "density_feature_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "density_type_id" integer NOT NULL DEFAULT 0,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "density_value" float NOT NULL DEFAULT 0
 );
 
 --
--- Table: density_type
+-- Table: "density_type"
 --
-CREATE TABLE density_type (
-  density_type_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  analysis_id integer NOT NULL DEFAULT 0,
-  block_size integer NOT NULL DEFAULT 0,
-  region_features integer NOT NULL DEFAULT 0,
-  value_type enum NOT NULL DEFAULT 'sum'
+CREATE TABLE "density_type" (
+  "density_type_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "analysis_id" integer NOT NULL DEFAULT 0,
+  "block_size" integer NOT NULL DEFAULT 0,
+  "region_features" integer NOT NULL DEFAULT 0,
+  "value_type" enum NOT NULL DEFAULT 'sum'
 );
 
-CREATE UNIQUE INDEX analysis_id ON density_type (analysis_id, block_size, region_features);
+CREATE UNIQUE INDEX "analysis_id" ON "density_type" ("analysis_id", "block_size", "region_features");
 
 --
--- Table: dependent_xref
+-- Table: "dependent_xref"
 --
-CREATE TABLE dependent_xref (
-  object_xref_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  master_xref_id integer NOT NULL,
-  dependent_xref_id integer NOT NULL
+CREATE TABLE "dependent_xref" (
+  "object_xref_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "master_xref_id" integer NOT NULL,
+  "dependent_xref_id" integer NOT NULL
 );
 
 --
--- Table: ditag
+-- Table: "ditag"
 --
-CREATE TABLE ditag (
-  ditag_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  name varchar(30),
-  type varchar(30),
-  tag_count smallint DEFAULT 1,
-  sequence text
+CREATE TABLE "ditag" (
+  "ditag_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "name" varchar(30),
+  "type" varchar(30),
+  "tag_count" smallint DEFAULT 1,
+  "sequence" text
 );
 
 --
--- Table: ditag_feature
+-- Table: "ditag_feature"
 --
-CREATE TABLE ditag_feature (
-  ditag_feature_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  ditag_id integer NOT NULL DEFAULT 0,
-  ditag_pair_id integer NOT NULL DEFAULT 0,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  seq_region_strand tinyint NOT NULL DEFAULT 0,
-  analysis_id integer NOT NULL DEFAULT 0,
-  hit_start integer NOT NULL DEFAULT 0,
-  hit_end integer NOT NULL DEFAULT 0,
-  hit_strand tinyint NOT NULL DEFAULT 0,
-  cigar_line text,
-  ditag_side char(1) DEFAULT ''
+CREATE TABLE "ditag_feature" (
+  "ditag_feature_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "ditag_id" integer NOT NULL DEFAULT 0,
+  "ditag_pair_id" integer NOT NULL DEFAULT 0,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "seq_region_strand" tinyint NOT NULL DEFAULT 0,
+  "analysis_id" integer NOT NULL DEFAULT 0,
+  "hit_start" integer NOT NULL DEFAULT 0,
+  "hit_end" integer NOT NULL DEFAULT 0,
+  "hit_strand" tinyint NOT NULL DEFAULT 0,
+  "cigar_line" text,
+  "ditag_side" char(1) DEFAULT ''
 );
 
 --
--- Table: dna
+-- Table: "dna"
 --
-CREATE TABLE dna (
-  seq_region_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL DEFAULT 0,
-  sequence mediumtext NOT NULL
+CREATE TABLE "dna" (
+  "seq_region_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL DEFAULT 0,
+  "sequence" mediumtext NOT NULL
 );
 
 --
--- Table: dna_align_feature
+-- Table: "dna_align_feature"
 --
-CREATE TABLE dna_align_feature (
-  dna_align_feature_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  seq_region_strand tinyint NOT NULL DEFAULT 0,
-  hit_start integer NOT NULL DEFAULT 0,
-  hit_end integer NOT NULL DEFAULT 0,
-  hit_strand tinyint NOT NULL DEFAULT 0,
-  hit_name varchar(40) NOT NULL DEFAULT '',
-  analysis_id integer NOT NULL DEFAULT 0,
-  score double precision,
-  evalue double precision,
-  perc_ident float,
-  cigar_line text,
-  external_db_id smallint,
-  hcoverage double precision,
-  align_type enum DEFAULT 'ensembl'
+CREATE TABLE "dna_align_feature" (
+  "dna_align_feature_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "seq_region_strand" tinyint NOT NULL DEFAULT 0,
+  "hit_start" integer NOT NULL DEFAULT 0,
+  "hit_end" integer NOT NULL DEFAULT 0,
+  "hit_strand" tinyint NOT NULL DEFAULT 0,
+  "hit_name" varchar(40) NOT NULL DEFAULT '',
+  "analysis_id" integer NOT NULL DEFAULT 0,
+  "score" double precision,
+  "evalue" double precision,
+  "perc_ident" float,
+  "cigar_line" text,
+  "external_db_id" smallint,
+  "hcoverage" double precision,
+  "align_type" enum DEFAULT 'ensembl'
 );
 
 --
--- Table: exon
+-- Table: "exon"
 --
-CREATE TABLE exon (
-  exon_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL,
-  seq_region_start integer NOT NULL,
-  seq_region_end integer NOT NULL,
-  seq_region_strand tinyint NOT NULL,
-  phase tinyint NOT NULL,
-  end_phase tinyint NOT NULL,
-  is_current tinyint NOT NULL DEFAULT 1,
-  is_constitutive tinyint NOT NULL DEFAULT 0,
-  stable_id varchar(128),
-  version smallint,
-  created_date datetime,
-  modified_date datetime
+CREATE TABLE "exon" (
+  "exon_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL,
+  "seq_region_start" integer NOT NULL,
+  "seq_region_end" integer NOT NULL,
+  "seq_region_strand" tinyint NOT NULL,
+  "phase" tinyint NOT NULL,
+  "end_phase" tinyint NOT NULL,
+  "is_current" tinyint NOT NULL DEFAULT 1,
+  "is_constitutive" tinyint NOT NULL DEFAULT 0,
+  "stable_id" varchar(128),
+  "version" smallint,
+  "created_date" datetime,
+  "modified_date" datetime
 );
 
 --
--- Table: exon_transcript
+-- Table: "exon_transcript"
 --
-CREATE TABLE exon_transcript (
-  exon_id integer NOT NULL DEFAULT 0,
-  transcript_id integer NOT NULL DEFAULT 0,
-  rank integer NOT NULL DEFAULT 0,
-  PRIMARY KEY (exon_id, transcript_id, rank)
+CREATE TABLE "exon_transcript" (
+  "exon_id" integer NOT NULL DEFAULT 0,
+  "transcript_id" integer NOT NULL DEFAULT 0,
+  "rank" integer NOT NULL DEFAULT 0,
+  PRIMARY KEY ("exon_id", "transcript_id", "rank")
 );
 
 --
--- Table: external_db
+-- Table: "external_db"
 --
-CREATE TABLE external_db (
-  external_db_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL DEFAULT 0,
-  db_name varchar(27) NOT NULL DEFAULT '',
-  db_release varchar(40) NOT NULL DEFAULT '',
-  status enum NOT NULL DEFAULT 'KNOWNXREF',
-  priority integer NOT NULL DEFAULT 0,
-  db_display_name varchar(255),
-  type enum,
-  secondary_db_name varchar(255),
-  secondary_db_table varchar(255),
-  description text
+CREATE TABLE "external_db" (
+  "external_db_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL DEFAULT 0,
+  "db_name" varchar(27) NOT NULL DEFAULT '',
+  "db_release" varchar(40) NOT NULL DEFAULT '',
+  "status" enum NOT NULL DEFAULT 'KNOWNXREF',
+  "priority" integer NOT NULL DEFAULT 0,
+  "db_display_name" varchar(255),
+  "type" enum,
+  "secondary_db_name" varchar(255),
+  "secondary_db_table" varchar(255),
+  "description" text
 );
 
-CREATE UNIQUE INDEX db_name_db_release_idx ON external_db (db_name, db_release);
+CREATE UNIQUE INDEX "db_name_db_release_idx" ON "external_db" ("db_name", "db_release");
 
 --
--- Table: external_synonym
+-- Table: "external_synonym"
 --
-CREATE TABLE external_synonym (
-  xref_id integer NOT NULL DEFAULT 0,
-  synonym varchar(40) NOT NULL DEFAULT '',
-  PRIMARY KEY (xref_id, synonym)
+CREATE TABLE "external_synonym" (
+  "xref_id" integer NOT NULL DEFAULT 0,
+  "synonym" varchar(40) NOT NULL DEFAULT '',
+  PRIMARY KEY ("xref_id", "synonym")
 );
 
 --
--- Table: gene
+-- Table: "gene"
 --
-CREATE TABLE gene (
-  gene_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  biotype varchar(40) NOT NULL,
-  analysis_id smallint NOT NULL,
-  seq_region_id integer NOT NULL,
-  seq_region_start integer NOT NULL,
-  seq_region_end integer NOT NULL,
-  seq_region_strand tinyint NOT NULL,
-  display_xref_id integer,
-  source varchar(40) NOT NULL,
-  description text,
-  is_current tinyint NOT NULL DEFAULT 1,
-  canonical_transcript_id integer NOT NULL,
-  stable_id varchar(128),
-  version smallint,
-  created_date datetime,
-  modified_date datetime
+CREATE TABLE "gene" (
+  "gene_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "biotype" varchar(40) NOT NULL,
+  "analysis_id" smallint NOT NULL,
+  "seq_region_id" integer NOT NULL,
+  "seq_region_start" integer NOT NULL,
+  "seq_region_end" integer NOT NULL,
+  "seq_region_strand" tinyint NOT NULL,
+  "display_xref_id" integer,
+  "source" varchar(40) NOT NULL,
+  "description" text,
+  "is_current" tinyint NOT NULL DEFAULT 1,
+  "canonical_transcript_id" integer NOT NULL,
+  "stable_id" varchar(128),
+  "version" smallint,
+  "created_date" datetime,
+  "modified_date" datetime
 );
 
 --
--- Table: gene_archive
+-- Table: "gene_archive"
 --
-CREATE TABLE gene_archive (
-  gene_stable_id varchar(128) NOT NULL DEFAULT '',
-  gene_version smallint NOT NULL DEFAULT 0,
-  transcript_stable_id varchar(128) NOT NULL DEFAULT '',
-  transcript_version smallint NOT NULL DEFAULT 0,
-  translation_stable_id varchar(128) NOT NULL DEFAULT '',
-  translation_version smallint NOT NULL DEFAULT 0,
-  peptide_archive_id integer NOT NULL DEFAULT 0,
-  mapping_session_id integer NOT NULL DEFAULT 0
+CREATE TABLE "gene_archive" (
+  "gene_stable_id" varchar(128) NOT NULL DEFAULT '',
+  "gene_version" smallint NOT NULL DEFAULT 0,
+  "transcript_stable_id" varchar(128) NOT NULL DEFAULT '',
+  "transcript_version" smallint NOT NULL DEFAULT 0,
+  "translation_stable_id" varchar(128) NOT NULL DEFAULT '',
+  "translation_version" smallint NOT NULL DEFAULT 0,
+  "peptide_archive_id" integer NOT NULL DEFAULT 0,
+  "mapping_session_id" integer NOT NULL DEFAULT 0
 );
 
 --
--- Table: gene_attrib
+-- Table: "gene_attrib"
 --
-CREATE TABLE gene_attrib (
-  gene_id integer NOT NULL DEFAULT 0,
-  attrib_type_id smallint NOT NULL DEFAULT 0,
-  value text NOT NULL
+CREATE TABLE "gene_attrib" (
+  "gene_id" integer NOT NULL DEFAULT 0,
+  "attrib_type_id" smallint NOT NULL DEFAULT 0,
+  "value" text NOT NULL
 );
 
-CREATE UNIQUE INDEX gene_attribx ON gene_attrib (gene_id, attrib_type_id, value);
+CREATE UNIQUE INDEX "gene_attribx" ON "gene_attrib" ("gene_id", "attrib_type_id", "value");
 
 --
--- Table: genome_statistics
+-- Table: "genome_statistics"
 --
-CREATE TABLE genome_statistics (
-  genome_statistics_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  statistic varchar(128) NOT NULL,
-  value bigint NOT NULL DEFAULT 0,
-  species_id integer DEFAULT 1,
-  attrib_type_id integer,
-  timestamp datetime
+CREATE TABLE "genome_statistics" (
+  "genome_statistics_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "statistic" varchar(128) NOT NULL,
+  "value" bigint NOT NULL DEFAULT 0,
+  "species_id" integer DEFAULT 1,
+  "attrib_type_id" integer,
+  "timestamp" datetime
 );
 
-CREATE UNIQUE INDEX stats_uniq ON genome_statistics (statistic, attrib_type_id, species_id);
+CREATE UNIQUE INDEX "stats_uniq" ON "genome_statistics" ("statistic", "attrib_type_id", "species_id");
 
 --
--- Table: identity_xref
+-- Table: "identity_xref"
 --
-CREATE TABLE identity_xref (
-  object_xref_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL DEFAULT 0,
-  xref_identity integer,
-  ensembl_identity integer,
-  xref_start integer,
-  xref_end integer,
-  ensembl_start integer,
-  ensembl_end integer,
-  cigar_line text,
-  score double precision,
-  evalue double precision
+CREATE TABLE "identity_xref" (
+  "object_xref_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL DEFAULT 0,
+  "xref_identity" integer,
+  "ensembl_identity" integer,
+  "xref_start" integer,
+  "xref_end" integer,
+  "ensembl_start" integer,
+  "ensembl_end" integer,
+  "cigar_line" text,
+  "score" double precision,
+  "evalue" double precision
 );
 
 --
--- Table: interpro
+-- Table: "interpro"
 --
-CREATE TABLE interpro (
-  interpro_ac varchar(40) NOT NULL DEFAULT '',
-  id varchar(40) NOT NULL
+CREATE TABLE "interpro" (
+  "interpro_ac" varchar(40) NOT NULL DEFAULT '',
+  "id" varchar(40) NOT NULL
 );
 
-CREATE UNIQUE INDEX accession_idx ON interpro (interpro_ac, id);
+CREATE UNIQUE INDEX "accession_idx" ON "interpro" ("interpro_ac", "id");
 
 --
--- Table: intron_supporting_evidence
+-- Table: "intron_supporting_evidence"
 --
-CREATE TABLE intron_supporting_evidence (
-  intron_supporting_evidence_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  analysis_id smallint NOT NULL,
-  seq_region_id integer NOT NULL,
-  seq_region_start integer NOT NULL,
-  seq_region_end integer NOT NULL,
-  seq_region_strand tinyint NOT NULL,
-  hit_name varchar(100) NOT NULL,
-  score decimal(10,3),
-  score_type enum DEFAULT 'NONE',
-  is_splice_canonical tinyint NOT NULL DEFAULT 0
+CREATE TABLE "intron_supporting_evidence" (
+  "intron_supporting_evidence_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "analysis_id" smallint NOT NULL,
+  "seq_region_id" integer NOT NULL,
+  "seq_region_start" integer NOT NULL,
+  "seq_region_end" integer NOT NULL,
+  "seq_region_strand" tinyint NOT NULL,
+  "hit_name" varchar(100) NOT NULL,
+  "score" decimal(10,3),
+  "score_type" enum DEFAULT 'NONE',
+  "is_splice_canonical" tinyint NOT NULL DEFAULT 0
 );
 
-CREATE UNIQUE INDEX analysis_id02 ON intron_supporting_evidence (analysis_id, seq_region_id, seq_region_start, seq_region_end, seq_region_strand, hit_name);
+CREATE UNIQUE INDEX "analysis_id02" ON "intron_supporting_evidence" ("analysis_id", "seq_region_id", "seq_region_start", "seq_region_end", "seq_region_strand", "hit_name");
 
 --
--- Table: karyotype
+-- Table: "karyotype"
 --
-CREATE TABLE karyotype (
-  karyotype_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  band varchar(40),
-  stain varchar(40)
+CREATE TABLE "karyotype" (
+  "karyotype_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "band" varchar(40),
+  "stain" varchar(40)
 );
 
 --
--- Table: map
+-- Table: "map"
 --
-CREATE TABLE map (
-  map_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  map_name varchar(30) NOT NULL DEFAULT ''
+CREATE TABLE "map" (
+  "map_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "map_name" varchar(30) NOT NULL DEFAULT ''
 );
 
 --
--- Table: mapping_session
+-- Table: "mapping_session"
 --
-CREATE TABLE mapping_session (
-  mapping_session_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  old_db_name varchar(80) NOT NULL DEFAULT '',
-  new_db_name varchar(80) NOT NULL DEFAULT '',
-  old_release varchar(5) NOT NULL DEFAULT '',
-  new_release varchar(5) NOT NULL DEFAULT '',
-  old_assembly varchar(20) NOT NULL DEFAULT '',
-  new_assembly varchar(20) NOT NULL DEFAULT '',
-  created datetime
+CREATE TABLE "mapping_session" (
+  "mapping_session_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "old_db_name" varchar(80) NOT NULL DEFAULT '',
+  "new_db_name" varchar(80) NOT NULL DEFAULT '',
+  "old_release" varchar(5) NOT NULL DEFAULT '',
+  "new_release" varchar(5) NOT NULL DEFAULT '',
+  "old_assembly" varchar(20) NOT NULL DEFAULT '',
+  "new_assembly" varchar(20) NOT NULL DEFAULT '',
+  "created" datetime
 );
 
 --
--- Table: mapping_set
+-- Table: "mapping_set"
 --
-CREATE TABLE mapping_set (
-  mapping_set_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  internal_schema_build varchar(20) NOT NULL,
-  external_schema_build varchar(20) NOT NULL
+CREATE TABLE "mapping_set" (
+  "mapping_set_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "internal_schema_build" varchar(20) NOT NULL,
+  "external_schema_build" varchar(20) NOT NULL
 );
 
-CREATE UNIQUE INDEX mapping_idx ON mapping_set (internal_schema_build, external_schema_build);
+CREATE UNIQUE INDEX "mapping_idx" ON "mapping_set" ("internal_schema_build", "external_schema_build");
 
 --
--- Table: marker
+-- Table: "marker"
 --
-CREATE TABLE marker (
-  marker_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  display_marker_synonym_id integer,
-  left_primer varchar(100) NOT NULL DEFAULT '',
-  right_primer varchar(100) NOT NULL DEFAULT '',
-  min_primer_dist integer NOT NULL DEFAULT 0,
-  max_primer_dist integer NOT NULL DEFAULT 0,
-  priority integer,
-  type enum
+CREATE TABLE "marker" (
+  "marker_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "display_marker_synonym_id" integer,
+  "left_primer" varchar(100) NOT NULL DEFAULT '',
+  "right_primer" varchar(100) NOT NULL DEFAULT '',
+  "min_primer_dist" integer NOT NULL DEFAULT 0,
+  "max_primer_dist" integer NOT NULL DEFAULT 0,
+  "priority" integer,
+  "type" enum
 );
 
 --
--- Table: marker_feature
+-- Table: "marker_feature"
 --
-CREATE TABLE marker_feature (
-  marker_feature_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  marker_id integer NOT NULL DEFAULT 0,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  analysis_id integer NOT NULL DEFAULT 0,
-  map_weight integer
+CREATE TABLE "marker_feature" (
+  "marker_feature_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "marker_id" integer NOT NULL DEFAULT 0,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "analysis_id" integer NOT NULL DEFAULT 0,
+  "map_weight" integer
 );
 
 --
--- Table: marker_map_location
+-- Table: "marker_map_location"
 --
-CREATE TABLE marker_map_location (
-  marker_id integer NOT NULL DEFAULT 0,
-  map_id integer NOT NULL DEFAULT 0,
-  chromosome_name varchar(15) NOT NULL DEFAULT '',
-  marker_synonym_id integer NOT NULL DEFAULT 0,
-  position varchar(15) NOT NULL DEFAULT '',
-  lod_score double precision,
-  PRIMARY KEY (marker_id, map_id)
+CREATE TABLE "marker_map_location" (
+  "marker_id" integer NOT NULL DEFAULT 0,
+  "map_id" integer NOT NULL DEFAULT 0,
+  "chromosome_name" varchar(15) NOT NULL DEFAULT '',
+  "marker_synonym_id" integer NOT NULL DEFAULT 0,
+  "position" varchar(15) NOT NULL DEFAULT '',
+  "lod_score" double precision,
+  PRIMARY KEY ("marker_id", "map_id")
 );
 
 --
--- Table: marker_synonym
+-- Table: "marker_synonym"
 --
-CREATE TABLE marker_synonym (
-  marker_synonym_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  marker_id integer NOT NULL DEFAULT 0,
-  source varchar(20),
-  name varchar(30)
+CREATE TABLE "marker_synonym" (
+  "marker_synonym_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "marker_id" integer NOT NULL DEFAULT 0,
+  "source" varchar(20),
+  "name" varchar(30)
 );
 
 --
--- Table: meta
+-- Table: "meta"
 --
-CREATE TABLE meta (
-  meta_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  species_id integer DEFAULT 1,
-  meta_key varchar(40) NOT NULL,
-  meta_value varchar(255) NOT NULL
+CREATE TABLE "meta" (
+  "meta_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "species_id" integer DEFAULT 1,
+  "meta_key" varchar(40) NOT NULL,
+  "meta_value" varchar(255) NOT NULL
 );
 
-CREATE UNIQUE INDEX species_key_value_idx ON meta (species_id, meta_key, meta_value);
+CREATE UNIQUE INDEX "species_key_value_idx" ON "meta" ("species_id", "meta_key", "meta_value");
 
 --
--- Table: meta_coord
+-- Table: "meta_coord"
 --
-CREATE TABLE meta_coord (
-  table_name varchar(40) NOT NULL DEFAULT '',
-  coord_system_id integer NOT NULL DEFAULT 0,
-  max_length integer
+CREATE TABLE "meta_coord" (
+  "table_name" varchar(40) NOT NULL DEFAULT '',
+  "coord_system_id" integer NOT NULL DEFAULT 0,
+  "max_length" integer
 );
 
-CREATE UNIQUE INDEX cs_table_name_idx ON meta_coord (coord_system_id, table_name);
+CREATE UNIQUE INDEX "cs_table_name_idx" ON "meta_coord" ("coord_system_id", "table_name");
 
 --
--- Table: misc_attrib
+-- Table: "misc_attrib"
 --
-CREATE TABLE misc_attrib (
-  misc_feature_id integer NOT NULL DEFAULT 0,
-  attrib_type_id smallint NOT NULL DEFAULT 0,
-  value text NOT NULL
+CREATE TABLE "misc_attrib" (
+  "misc_feature_id" integer NOT NULL DEFAULT 0,
+  "attrib_type_id" smallint NOT NULL DEFAULT 0,
+  "value" text NOT NULL
 );
 
-CREATE UNIQUE INDEX misc_attribx ON misc_attrib (misc_feature_id, attrib_type_id, value);
+CREATE UNIQUE INDEX "misc_attribx" ON "misc_attrib" ("misc_feature_id", "attrib_type_id", "value");
 
 --
--- Table: misc_feature
+-- Table: "misc_feature"
 --
-CREATE TABLE misc_feature (
-  misc_feature_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  seq_region_strand tinyint NOT NULL DEFAULT 0
+CREATE TABLE "misc_feature" (
+  "misc_feature_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "seq_region_strand" tinyint NOT NULL DEFAULT 0
 );
 
 --
--- Table: misc_feature_misc_set
+-- Table: "misc_feature_misc_set"
 --
-CREATE TABLE misc_feature_misc_set (
-  misc_feature_id integer NOT NULL DEFAULT 0,
-  misc_set_id smallint NOT NULL DEFAULT 0,
-  PRIMARY KEY (misc_feature_id, misc_set_id)
+CREATE TABLE "misc_feature_misc_set" (
+  "misc_feature_id" integer NOT NULL DEFAULT 0,
+  "misc_set_id" smallint NOT NULL DEFAULT 0,
+  PRIMARY KEY ("misc_feature_id", "misc_set_id")
 );
 
 --
--- Table: misc_set
+-- Table: "misc_set"
 --
-CREATE TABLE misc_set (
-  misc_set_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  code varchar(25) NOT NULL DEFAULT '',
-  name varchar(255) NOT NULL DEFAULT '',
-  description text NOT NULL,
-  max_length integer NOT NULL DEFAULT 0
+CREATE TABLE "misc_set" (
+  "misc_set_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "code" varchar(25) NOT NULL DEFAULT '',
+  "name" varchar(255) NOT NULL DEFAULT '',
+  "description" text NOT NULL,
+  "max_length" integer NOT NULL DEFAULT 0
 );
 
-CREATE UNIQUE INDEX code_idx02 ON misc_set (code);
+CREATE UNIQUE INDEX "code_idx02" ON "misc_set" ("code");
 
 --
--- Table: object_xref
+-- Table: "object_xref"
 --
-CREATE TABLE object_xref (
-  object_xref_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  ensembl_id integer NOT NULL DEFAULT 0,
-  ensembl_object_type enum NOT NULL DEFAULT 'RawContig',
-  xref_id integer NOT NULL,
-  linkage_annotation varchar(255),
-  analysis_id smallint
+CREATE TABLE "object_xref" (
+  "object_xref_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "ensembl_id" integer NOT NULL DEFAULT 0,
+  "ensembl_object_type" enum NOT NULL DEFAULT 'RawContig',
+  "xref_id" integer NOT NULL,
+  "linkage_annotation" varchar(255),
+  "analysis_id" smallint
 );
 
-CREATE UNIQUE INDEX xref_idx ON object_xref (xref_id, ensembl_object_type, ensembl_id, analysis_id);
+CREATE UNIQUE INDEX "xref_idx" ON "object_xref" ("xref_id", "ensembl_object_type", "ensembl_id", "analysis_id");
 
 --
--- Table: ontology_xref
+-- Table: "ontology_xref"
 --
-CREATE TABLE ontology_xref (
-  object_xref_id integer NOT NULL DEFAULT 0,
-  linkage_type varchar(3),
-  source_xref_id integer
+CREATE TABLE "ontology_xref" (
+  "object_xref_id" integer NOT NULL DEFAULT 0,
+  "linkage_type" varchar(3),
+  "source_xref_id" integer
 );
 
-CREATE UNIQUE INDEX object_source_type_idx ON ontology_xref (object_xref_id, source_xref_id, linkage_type);
+CREATE UNIQUE INDEX "object_source_type_idx" ON "ontology_xref" ("object_xref_id", "source_xref_id", "linkage_type");
 
 --
--- Table: operon
+-- Table: "operon"
 --
-CREATE TABLE operon (
-  operon_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL,
-  seq_region_start integer NOT NULL,
-  seq_region_end integer NOT NULL,
-  seq_region_strand tinyint NOT NULL,
-  display_label varchar(255),
-  analysis_id smallint NOT NULL,
-  stable_id varchar(128),
-  version smallint,
-  created_date datetime,
-  modified_date datetime
+CREATE TABLE "operon" (
+  "operon_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL,
+  "seq_region_start" integer NOT NULL,
+  "seq_region_end" integer NOT NULL,
+  "seq_region_strand" tinyint NOT NULL,
+  "display_label" varchar(255),
+  "analysis_id" smallint NOT NULL,
+  "stable_id" varchar(128),
+  "version" smallint,
+  "created_date" datetime,
+  "modified_date" datetime
 );
 
 --
--- Table: operon_transcript
+-- Table: "operon_transcript"
 --
-CREATE TABLE operon_transcript (
-  operon_transcript_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL,
-  seq_region_start integer NOT NULL,
-  seq_region_end integer NOT NULL,
-  seq_region_strand tinyint NOT NULL,
-  operon_id integer NOT NULL,
-  display_label varchar(255),
-  analysis_id smallint NOT NULL,
-  stable_id varchar(128),
-  version smallint,
-  created_date datetime,
-  modified_date datetime
+CREATE TABLE "operon_transcript" (
+  "operon_transcript_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL,
+  "seq_region_start" integer NOT NULL,
+  "seq_region_end" integer NOT NULL,
+  "seq_region_strand" tinyint NOT NULL,
+  "operon_id" integer NOT NULL,
+  "display_label" varchar(255),
+  "analysis_id" smallint NOT NULL,
+  "stable_id" varchar(128),
+  "version" smallint,
+  "created_date" datetime,
+  "modified_date" datetime
 );
 
 --
--- Table: operon_transcript_gene
+-- Table: "operon_transcript_gene"
 --
-CREATE TABLE operon_transcript_gene (
-  operon_transcript_id integer,
-  gene_id integer
+CREATE TABLE "operon_transcript_gene" (
+  "operon_transcript_id" integer,
+  "gene_id" integer
 );
 
 --
--- Table: peptide_archive
+-- Table: "peptide_archive"
 --
-CREATE TABLE peptide_archive (
-  peptide_archive_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  md5_checksum varchar(32),
-  peptide_seq mediumtext NOT NULL
+CREATE TABLE "peptide_archive" (
+  "peptide_archive_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "md5_checksum" varchar(32),
+  "peptide_seq" mediumtext NOT NULL
 );
 
 --
--- Table: prediction_exon
+-- Table: "prediction_exon"
 --
-CREATE TABLE prediction_exon (
-  prediction_exon_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  prediction_transcript_id integer NOT NULL DEFAULT 0,
-  exon_rank smallint NOT NULL DEFAULT 0,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  seq_region_strand tinyint NOT NULL DEFAULT 0,
-  start_phase tinyint NOT NULL DEFAULT 0,
-  score double precision,
-  p_value double precision
+CREATE TABLE "prediction_exon" (
+  "prediction_exon_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "prediction_transcript_id" integer NOT NULL DEFAULT 0,
+  "exon_rank" smallint NOT NULL DEFAULT 0,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "seq_region_strand" tinyint NOT NULL DEFAULT 0,
+  "start_phase" tinyint NOT NULL DEFAULT 0,
+  "score" double precision,
+  "p_value" double precision
 );
 
 --
--- Table: prediction_transcript
+-- Table: "prediction_transcript"
 --
-CREATE TABLE prediction_transcript (
-  prediction_transcript_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  seq_region_strand tinyint NOT NULL DEFAULT 0,
-  analysis_id integer,
-  display_label varchar(255)
+CREATE TABLE "prediction_transcript" (
+  "prediction_transcript_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "seq_region_strand" tinyint NOT NULL DEFAULT 0,
+  "analysis_id" integer,
+  "display_label" varchar(255)
 );
 
 --
--- Table: protein_align_feature
+-- Table: "protein_align_feature"
 --
-CREATE TABLE protein_align_feature (
-  protein_align_feature_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  seq_region_strand tinyint NOT NULL DEFAULT 1,
-  hit_start integer NOT NULL DEFAULT 0,
-  hit_end integer NOT NULL DEFAULT 0,
-  hit_name varchar(40) NOT NULL DEFAULT '',
-  analysis_id integer NOT NULL DEFAULT 0,
-  score double precision,
-  evalue double precision,
-  perc_ident float,
-  cigar_line text,
-  external_db_id smallint,
-  hcoverage double precision,
-  align_type enum DEFAULT 'ensembl'
+CREATE TABLE "protein_align_feature" (
+  "protein_align_feature_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "seq_region_strand" tinyint NOT NULL DEFAULT 1,
+  "hit_start" integer NOT NULL DEFAULT 0,
+  "hit_end" integer NOT NULL DEFAULT 0,
+  "hit_name" varchar(40) NOT NULL DEFAULT '',
+  "analysis_id" integer NOT NULL DEFAULT 0,
+  "score" double precision,
+  "evalue" double precision,
+  "perc_ident" float,
+  "cigar_line" text,
+  "external_db_id" smallint,
+  "hcoverage" double precision,
+  "align_type" enum DEFAULT 'ensembl'
 );
 
 --
--- Table: protein_feature
+-- Table: "protein_feature"
 --
-CREATE TABLE protein_feature (
-  protein_feature_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  translation_id integer NOT NULL DEFAULT 0,
-  seq_start integer NOT NULL DEFAULT 0,
-  seq_end integer NOT NULL DEFAULT 0,
-  hit_start integer NOT NULL DEFAULT 0,
-  hit_end integer NOT NULL DEFAULT 0,
-  hit_name varchar(40) NOT NULL,
-  analysis_id integer NOT NULL DEFAULT 0,
-  score double precision NOT NULL DEFAULT 0,
-  evalue double precision,
-  perc_ident float,
-  external_data text,
-  hit_description text,
-  cigar_line text,
-  align_type enum
+CREATE TABLE "protein_feature" (
+  "protein_feature_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "translation_id" integer NOT NULL DEFAULT 0,
+  "seq_start" integer NOT NULL DEFAULT 0,
+  "seq_end" integer NOT NULL DEFAULT 0,
+  "hit_start" integer NOT NULL DEFAULT 0,
+  "hit_end" integer NOT NULL DEFAULT 0,
+  "hit_name" varchar(40) NOT NULL,
+  "analysis_id" integer NOT NULL DEFAULT 0,
+  "score" double precision NOT NULL DEFAULT 0,
+  "evalue" double precision,
+  "perc_ident" float,
+  "external_data" text,
+  "hit_description" text,
+  "cigar_line" text,
+  "align_type" enum
 );
 
-CREATE UNIQUE INDEX aln_idx ON protein_feature (translation_id, hit_name, seq_start, seq_end, hit_start, hit_end, analysis_id);
+CREATE UNIQUE INDEX "aln_idx" ON "protein_feature" ("translation_id", "hit_name", "seq_start", "seq_end", "hit_start", "hit_end", "analysis_id");
 
 --
--- Table: repeat_consensus
+-- Table: "repeat_consensus"
 --
-CREATE TABLE repeat_consensus (
-  repeat_consensus_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  repeat_name varchar(255) NOT NULL DEFAULT '',
-  repeat_class varchar(100) NOT NULL DEFAULT '',
-  repeat_type varchar(40) NOT NULL DEFAULT '',
-  repeat_consensus text
+CREATE TABLE "repeat_consensus" (
+  "repeat_consensus_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "repeat_name" varchar(255) NOT NULL DEFAULT '',
+  "repeat_class" varchar(100) NOT NULL DEFAULT '',
+  "repeat_type" varchar(40) NOT NULL DEFAULT '',
+  "repeat_consensus" text
 );
 
 --
--- Table: repeat_feature
+-- Table: "repeat_feature"
 --
-CREATE TABLE repeat_feature (
-  repeat_feature_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  seq_region_strand tinyint NOT NULL DEFAULT 1,
-  repeat_start integer NOT NULL DEFAULT 0,
-  repeat_end integer NOT NULL DEFAULT 0,
-  repeat_consensus_id integer NOT NULL DEFAULT 0,
-  analysis_id integer NOT NULL DEFAULT 0,
-  score double precision
+CREATE TABLE "repeat_feature" (
+  "repeat_feature_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "seq_region_strand" tinyint NOT NULL DEFAULT 1,
+  "repeat_start" integer NOT NULL DEFAULT 0,
+  "repeat_end" integer NOT NULL DEFAULT 0,
+  "repeat_consensus_id" integer NOT NULL DEFAULT 0,
+  "analysis_id" integer NOT NULL DEFAULT 0,
+  "score" double precision
 );
 
 --
--- Table: seq_region
+-- Table: "seq_region"
 --
-CREATE TABLE seq_region (
-  seq_region_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  name varchar(255) NOT NULL,
-  coord_system_id integer NOT NULL DEFAULT 0,
-  length integer NOT NULL DEFAULT 0
+CREATE TABLE "seq_region" (
+  "seq_region_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "name" varchar(255) NOT NULL,
+  "coord_system_id" integer NOT NULL DEFAULT 0,
+  "length" integer NOT NULL DEFAULT 0
 );
 
-CREATE UNIQUE INDEX name_cs_idx ON seq_region (name, coord_system_id);
+CREATE UNIQUE INDEX "name_cs_idx" ON "seq_region" ("name", "coord_system_id");
 
 --
--- Table: seq_region_attrib
+-- Table: "seq_region_attrib"
 --
-CREATE TABLE seq_region_attrib (
-  seq_region_id integer NOT NULL DEFAULT 0,
-  attrib_type_id smallint NOT NULL DEFAULT 0,
-  value text NOT NULL
+CREATE TABLE "seq_region_attrib" (
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "attrib_type_id" smallint NOT NULL DEFAULT 0,
+  "value" text NOT NULL
 );
 
-CREATE UNIQUE INDEX region_attribx ON seq_region_attrib (seq_region_id, attrib_type_id, value);
+CREATE UNIQUE INDEX "region_attribx" ON "seq_region_attrib" ("seq_region_id", "attrib_type_id", "value");
 
 --
--- Table: seq_region_mapping
+-- Table: "seq_region_mapping"
 --
-CREATE TABLE seq_region_mapping (
-  external_seq_region_id integer NOT NULL,
-  internal_seq_region_id integer NOT NULL,
-  mapping_set_id integer NOT NULL
+CREATE TABLE "seq_region_mapping" (
+  "external_seq_region_id" integer NOT NULL,
+  "internal_seq_region_id" integer NOT NULL,
+  "mapping_set_id" integer NOT NULL
 );
 
 --
--- Table: seq_region_synonym
+-- Table: "seq_region_synonym"
 --
-CREATE TABLE seq_region_synonym (
-  seq_region_synonym_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL,
-  synonym varchar(250) NOT NULL,
-  external_db_id smallint
+CREATE TABLE "seq_region_synonym" (
+  "seq_region_synonym_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL,
+  "synonym" varchar(250) NOT NULL,
+  "external_db_id" smallint
 );
 
-CREATE UNIQUE INDEX syn_idx ON seq_region_synonym (synonym, seq_region_id);
+CREATE UNIQUE INDEX "syn_idx" ON "seq_region_synonym" ("synonym", "seq_region_id");
 
 --
--- Table: simple_feature
+-- Table: "simple_feature"
 --
-CREATE TABLE simple_feature (
-  simple_feature_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  seq_region_id integer NOT NULL DEFAULT 0,
-  seq_region_start integer NOT NULL DEFAULT 0,
-  seq_region_end integer NOT NULL DEFAULT 0,
-  seq_region_strand tinyint NOT NULL DEFAULT 0,
-  display_label varchar(40) NOT NULL DEFAULT '',
-  analysis_id integer NOT NULL DEFAULT 0,
-  score double precision
+CREATE TABLE "simple_feature" (
+  "simple_feature_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "seq_region_id" integer NOT NULL DEFAULT 0,
+  "seq_region_start" integer NOT NULL DEFAULT 0,
+  "seq_region_end" integer NOT NULL DEFAULT 0,
+  "seq_region_strand" tinyint NOT NULL DEFAULT 0,
+  "display_label" varchar(40) NOT NULL DEFAULT '',
+  "analysis_id" integer NOT NULL DEFAULT 0,
+  "score" double precision
 );
 
 --
--- Table: stable_id_event
+-- Table: "stable_id_event"
 --
-CREATE TABLE stable_id_event (
-  old_stable_id varchar(128),
-  old_version smallint,
-  new_stable_id varchar(128),
-  new_version smallint,
-  mapping_session_id integer NOT NULL DEFAULT 0,
-  type enum NOT NULL DEFAULT 'gene',
-  score float NOT NULL DEFAULT 0
+CREATE TABLE "stable_id_event" (
+  "old_stable_id" varchar(128),
+  "old_version" smallint,
+  "new_stable_id" varchar(128),
+  "new_version" smallint,
+  "mapping_session_id" integer NOT NULL DEFAULT 0,
+  "type" enum NOT NULL DEFAULT 'gene',
+  "score" float NOT NULL DEFAULT 0
 );
 
-CREATE UNIQUE INDEX uni_idx ON stable_id_event (mapping_session_id, old_stable_id, old_version, new_stable_id, new_version, type);
+CREATE UNIQUE INDEX "uni_idx" ON "stable_id_event" ("mapping_session_id", "old_stable_id", "old_version", "new_stable_id", "new_version", "type");
 
 --
--- Table: supporting_feature
+-- Table: "supporting_feature"
 --
-CREATE TABLE supporting_feature (
-  exon_id integer NOT NULL DEFAULT 0,
-  feature_type enum,
-  feature_id integer NOT NULL DEFAULT 0
+CREATE TABLE "supporting_feature" (
+  "exon_id" integer NOT NULL DEFAULT 0,
+  "feature_type" enum,
+  "feature_id" integer NOT NULL DEFAULT 0
 );
 
-CREATE UNIQUE INDEX all_idx02 ON supporting_feature (exon_id, feature_type, feature_id);
+CREATE UNIQUE INDEX "all_idx02" ON "supporting_feature" ("exon_id", "feature_type", "feature_id");
 
 --
--- Table: transcript
+-- Table: "transcript"
 --
-CREATE TABLE transcript (
-  transcript_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  gene_id integer,
-  analysis_id smallint NOT NULL,
-  seq_region_id integer NOT NULL,
-  seq_region_start integer NOT NULL,
-  seq_region_end integer NOT NULL,
-  seq_region_strand tinyint NOT NULL,
-  display_xref_id integer,
-  source varchar(40) NOT NULL DEFAULT 'ensembl',
-  biotype varchar(40) NOT NULL,
-  description text,
-  is_current tinyint NOT NULL DEFAULT 1,
-  canonical_translation_id integer,
-  stable_id varchar(128),
-  version smallint,
-  created_date datetime,
-  modified_date datetime
+CREATE TABLE "transcript" (
+  "transcript_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "gene_id" integer,
+  "analysis_id" smallint NOT NULL,
+  "seq_region_id" integer NOT NULL,
+  "seq_region_start" integer NOT NULL,
+  "seq_region_end" integer NOT NULL,
+  "seq_region_strand" tinyint NOT NULL,
+  "display_xref_id" integer,
+  "source" varchar(40) NOT NULL DEFAULT 'ensembl',
+  "biotype" varchar(40) NOT NULL,
+  "description" text,
+  "is_current" tinyint NOT NULL DEFAULT 1,
+  "canonical_translation_id" integer,
+  "stable_id" varchar(128),
+  "version" smallint,
+  "created_date" datetime,
+  "modified_date" datetime
 );
 
-CREATE UNIQUE INDEX canonical_translation_idx ON transcript (canonical_translation_id);
+CREATE UNIQUE INDEX "canonical_translation_idx" ON "transcript" ("canonical_translation_id");
 
 --
--- Table: transcript_attrib
+-- Table: "transcript_attrib"
 --
-CREATE TABLE transcript_attrib (
-  transcript_id integer NOT NULL DEFAULT 0,
-  attrib_type_id smallint NOT NULL DEFAULT 0,
-  value text NOT NULL
+CREATE TABLE "transcript_attrib" (
+  "transcript_id" integer NOT NULL DEFAULT 0,
+  "attrib_type_id" smallint NOT NULL DEFAULT 0,
+  "value" text NOT NULL
 );
 
-CREATE UNIQUE INDEX transcript_attribx ON transcript_attrib (transcript_id, attrib_type_id, value);
+CREATE UNIQUE INDEX "transcript_attribx" ON "transcript_attrib" ("transcript_id", "attrib_type_id", "value");
 
 --
--- Table: transcript_intron_supporting_evidence
+-- Table: "transcript_intron_supporting_evidence"
 --
-CREATE TABLE transcript_intron_supporting_evidence (
-  transcript_id integer NOT NULL,
-  intron_supporting_evidence_id integer NOT NULL,
-  previous_exon_id integer NOT NULL,
-  next_exon_id integer NOT NULL,
-  PRIMARY KEY (intron_supporting_evidence_id, transcript_id)
+CREATE TABLE "transcript_intron_supporting_evidence" (
+  "transcript_id" integer NOT NULL,
+  "intron_supporting_evidence_id" integer NOT NULL,
+  "previous_exon_id" integer NOT NULL,
+  "next_exon_id" integer NOT NULL,
+  PRIMARY KEY ("intron_supporting_evidence_id", "transcript_id")
 );
 
 --
--- Table: transcript_supporting_feature
+-- Table: "transcript_supporting_feature"
 --
-CREATE TABLE transcript_supporting_feature (
-  transcript_id integer NOT NULL DEFAULT 0,
-  feature_type enum,
-  feature_id integer NOT NULL DEFAULT 0
+CREATE TABLE "transcript_supporting_feature" (
+  "transcript_id" integer NOT NULL DEFAULT 0,
+  "feature_type" enum,
+  "feature_id" integer NOT NULL DEFAULT 0
 );
 
-CREATE UNIQUE INDEX all_idx03 ON transcript_supporting_feature (transcript_id, feature_type, feature_id);
+CREATE UNIQUE INDEX "all_idx03" ON "transcript_supporting_feature" ("transcript_id", "feature_type", "feature_id");
 
 --
--- Table: translation
+-- Table: "translation"
 --
-CREATE TABLE translation (
-  translation_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  transcript_id integer NOT NULL,
-  seq_start integer NOT NULL,
-  start_exon_id integer NOT NULL,
-  seq_end integer NOT NULL,
-  end_exon_id integer NOT NULL,
-  stable_id varchar(128),
-  version smallint,
-  created_date datetime,
-  modified_date datetime
+CREATE TABLE "translation" (
+  "translation_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "transcript_id" integer NOT NULL,
+  "seq_start" integer NOT NULL,
+  "start_exon_id" integer NOT NULL,
+  "seq_end" integer NOT NULL,
+  "end_exon_id" integer NOT NULL,
+  "stable_id" varchar(128),
+  "version" smallint,
+  "created_date" datetime,
+  "modified_date" datetime
 );
 
 --
--- Table: translation_attrib
+-- Table: "translation_attrib"
 --
-CREATE TABLE translation_attrib (
-  translation_id integer NOT NULL DEFAULT 0,
-  attrib_type_id smallint NOT NULL DEFAULT 0,
-  value text NOT NULL
+CREATE TABLE "translation_attrib" (
+  "translation_id" integer NOT NULL DEFAULT 0,
+  "attrib_type_id" smallint NOT NULL DEFAULT 0,
+  "value" text NOT NULL
 );
 
-CREATE UNIQUE INDEX translation_attribx ON translation_attrib (translation_id, attrib_type_id, value);
+CREATE UNIQUE INDEX "translation_attribx" ON "translation_attrib" ("translation_id", "attrib_type_id", "value");
 
 --
--- Table: unmapped_object
+-- Table: "unmapped_object"
 --
-CREATE TABLE unmapped_object (
-  unmapped_object_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  type enum NOT NULL,
-  analysis_id integer NOT NULL,
-  external_db_id integer,
-  identifier varchar(255) NOT NULL,
-  unmapped_reason_id integer NOT NULL,
-  query_score double precision,
-  target_score double precision,
-  ensembl_id integer DEFAULT 0,
-  ensembl_object_type enum DEFAULT 'RawContig',
-  parent varchar(255)
+CREATE TABLE "unmapped_object" (
+  "unmapped_object_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "type" enum NOT NULL,
+  "analysis_id" integer NOT NULL,
+  "external_db_id" integer,
+  "identifier" varchar(255) NOT NULL,
+  "unmapped_reason_id" integer NOT NULL,
+  "query_score" double precision,
+  "target_score" double precision,
+  "ensembl_id" integer DEFAULT 0,
+  "ensembl_object_type" enum DEFAULT 'RawContig',
+  "parent" varchar(255)
 );
 
-CREATE UNIQUE INDEX unique_unmapped_obj_idx ON unmapped_object (ensembl_id, ensembl_object_type, identifier, unmapped_reason_id, parent, external_db_id);
+CREATE UNIQUE INDEX "unique_unmapped_obj_idx" ON "unmapped_object" ("ensembl_id", "ensembl_object_type", "identifier", "unmapped_reason_id", "parent", "external_db_id");
 
 --
--- Table: unmapped_reason
+-- Table: "unmapped_reason"
 --
-CREATE TABLE unmapped_reason (
-  unmapped_reason_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  summary_description varchar(255),
-  full_description varchar(255)
+CREATE TABLE "unmapped_reason" (
+  "unmapped_reason_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "summary_description" varchar(255),
+  "full_description" varchar(255)
 );
 
 --
--- Table: xref
+-- Table: "xref"
 --
-CREATE TABLE xref (
-  xref_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-  external_db_id integer NOT NULL,
-  dbprimary_acc varchar(512) NOT NULL,
-  display_label varchar(512) NOT NULL,
-  version varchar(10),
-  description text,
-  info_type enum NOT NULL DEFAULT 'NONE',
-  info_text varchar(255) NOT NULL DEFAULT ''
+CREATE TABLE "xref" (
+  "xref_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+  "external_db_id" integer NOT NULL,
+  "dbprimary_acc" varchar(512) NOT NULL,
+  "display_label" varchar(512) NOT NULL,
+  "version" varchar(10),
+  "description" text,
+  "info_type" enum NOT NULL DEFAULT 'NONE',
+  "info_text" varchar(255) NOT NULL DEFAULT ''
 );
 
-CREATE UNIQUE INDEX id_index ON xref (dbprimary_acc, external_db_id, info_type, info_text, version);
+CREATE UNIQUE INDEX "id_index" ON "xref" ("dbprimary_acc", "external_db_id", "info_type", "info_text", "version");
 
 COMMIT;