adding database and models