Added config table plus support for schema versioning and upgrades