Add functionality to resolve config against the DB