Fixed transaction query for getAll().
Formatting.
Fixed small bug in getAll().