Moved from using datamapper to using sequel as an ORM

also moved settings into its own file, separate from the database bits,
I also moved the settings erg and associated values into “keys” as it
really is just a key value store.