Implemented database lazy loading without any changes of Kristina.

According implementation tested on 14 and 20 March.