Made changes to createTables