Update to latest Queries.java
First working version of transfering cabs from rails6 to rails7