Add more db tests to check after when things have been deleted
Merge pull request #510 from chilts/moar-db-tests

Add more db tests to check after when things have been deleted