user gives db runner function