made changes to config for mad db read and write access