addressed code review notes: removed getDates() function and used DatabaseBase::timestamp() method to get start and end dates