remove old template check records migrate