Fix db query param mismatch