collapse create_tables to 1 method