added createTables, implementing insert