Converting old Database versions to new ones

and lots of other stuff