Code base

New test class TestSessionRecordsHandler.

Used to assemble queries with the aim to produce a design that is both
readable and maintainable.