global: clean database fix