get tasks from database