adding tasks to db