integrated the background gmail service and the alarms for wifi. added the getallactivities in dbhelper