Added the addEventFromDB method

This method currently takes in the entire task object. This may be changed
in future, to pass in individual strings containing task description, time
and date.