script to change database names in config files