moved test_database method to DatabaseManager