remove db groups and templates