added database setup