added database and models