added database connection