create task model with pulling tasks list from database