Adding config module for DB and server dirs

Fixing previous push for config module support.