added database tables and models