Remove unnecessary items from database