fix to allow booleans and such in queries and not escape them