test for database connection