Bare bones of setup code ready

There is plenty more to do, but here is where the whole system is set up
- all databases, tables, etc.