fix unit tests (issue only reproduced using gradle build) - ensure jdbc statement does not close before result set usage is complete  (TODO: ideal fix is to not return resulset but rather a list of objects)