Add method to insert Task object into DB