Makes the db adapter come from the config along with all the settings.
Merge pull request #266 from juliomenendez/use-postgres

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