fixed configuration model

database configuration now properly pulls from the yaml file.