Cleanup in database manager.