databse and table creation now work properly