Allow a path prefix to be set for the JSON DB save/load location.

Improved the exception reported when constructing a JSON DB fails.