dbLoc now contains all logic that deals with dbLoc

The public API are 3 wrapper methods around a pkg global dbLoc
value in variable dbLocation. Init still has to be called before
using any other functions dealing with configuration.