check for pre-v4.0 tables before running upgrades