connect project and task with database