Move to using a sqlite DB instead of configuration files