added database connection test