added database connection class