hooking up task to db