edit gets filter from database