conected tasks to a database