database cleaning and dynamic inclusion of kategories