Add migrate DB repository consistency check