Allow db.load() to work outside of module.exports