Add a toJson function. Add an init function.
Add a model for the config table