Deletions, repopulate on add/delete

Also prettyprint "database" JSON.