Automatically create tables and indexes