Fixed ensure_index and added a returnQuery = None as argument for find