Add missing tables at upgrade