implementing breaking changes from new reql driver, also supporting multi indexes