fix db grep