retrieve fields from DB that we access in loop, and hence avoid PHP Noti...

...ces