Saving tasks on database