Bug fix: corrected query methods in ActivityDBManager to retrieve
timestamp instead of date from activity DB table