Fixed the inverter

Now correctly working but I still have a few things to fix.
Fixed SQLStorage not working because of the new cache.

Also renamed config.init()