Database integrity checks before start of application