Used jooq for building query.
Design optimisations. In the stage of creating a logging that will "tell
a good story" for developers in DEBUG level.