Added static methods for db integrity check