Fixups in seed_db
Table definitions for templates and import templates functionality