Adding info in error about number of retries.
Fixed int64 handling in queries.