changed the way models and tables are initialized/configured