Javadoc update and small refactoring of a couple of helper methods into StatsDBUtils