Stores tasks in a database table