Work in progress adding control and io layers
More work on getting the db hooked up