Bug fix: Sometimes the databaseNames were duplicated.