fixing sql table creation