Fixes db issues, no upgrade scripts yet