queries now work with int columns, and better request error handling