re #878 - Cleanup database