test for database connections