fixed createTables