Fix get queries

Get queries now use the production tables.