Implemented lazy loading of db data