fix some old queries that showed up in dbfail