Add task to DB.