Added loadFromFile function to allow loading of config to db.