Admin: improve clean database method