Added database logging and started work on cron.py which will log values when called by cron