added ability to test database connection