Modified create_tables