added database initialization