added db pipe, b functions + added Add Task function