Edit to POSoperations - added UPPER to query