Adds db config in config file.