generate all tables