Thanks for the link and I had already found this but it would crash everytime when I edited the config file and repacked it. The repacked config.db file was 2345kb but my existing config file was 2865kb so it was a lot smaller in file size and would crash within seconds when I replaced them.
I just tried it again today and it works. For some reason the repacked config.db file is now 2865kb and SUCCESS! I was finally able to reduce the weight of the butterfly mine which is the only explosive I know of that can be hotkeyed. Being able to edit and save the database files means I can do a lot more modding now.