append config files for each environment
append master/slave setting
change db config to describe set