added the task model and function of adding a new task to the database