Dbupgrade 7 fix