Renamed JournalData to Journal
Pulled out entry filtering from balance query function so it can be reused
by register query function.