Adds back db tables check (indexes, fields) on upgrade