in reply to Verify database consistency after merge
I've personally found the Test::DatabaseRow module very helpful for testing database values.