Add option for custom write/read config on local.xml template

Add support for different db connection configurations. Useful for split reading and writing on Tungsten clusters, for example.