fix minor table and schema creation issues