Working on automated db tables, and index creation