db changes for filtering