feat: improve detection of mongo-ids in queries