Priya

@mpetrovic
Made the following changes:
a)added code to check the db for 'today's data. If not available, get from webservice. Also get refreshed data from webservice after every hour
b)added code to calculate time difference between now and the time the data was entered in the db

These are too generic. Your code isn't running in a vacuum. If someone else declares these constants, it would cause every page to crash. It's common practice to include the name of your module in constants if they're not specific enough already.