separate get from getObligationsFromDB function

just moving this to its own function