Add some db integrity testing and notification