Move db, config loading to methods

Pass path to load_ methods
Fetch db to supplied path, with a fallback default