First pass of refactored accrual dao. Still needs a bit more work