This can be used for some regular day-day activities. For eg. if you want to read a statistics table/view on a daily basis and create feeds, you can tweak this code a bit to utilize for your need.