Testing database integrity.

Signed-off-by: Nigel <Nigel@192.168.38.1>