wip - past halfway through implementing gui db service