Makes the db adapter come from the config along with all the settings.