added basic model and tables