cleanup documenttype querybuilder