moves Orm.query_ref to Orm.query.ref and then converts Orm.query_ref so it just passes through the values to its query instance, this allows both Orm and Query to take advantage of the ref code