Moved db config code to config.json.
Added more properties to config.json