Databasemanager fix.