added database and data access objects