Tests the database connection.
Throws an exception if the connection is not working.
Future<bool> testConnection();