added query as cursor, added hint and related ensureIndex if needed