added flat_tables models