Added database changes to upgrade_*.sql from 1.0.1

I guess this is the "right" branch for it.
I hope...