wip - finished first pass on db service, need pg upgrade to 9.3