Removed obsolete db upgrade code