added database connection singleton