Fix editor bug

* Add transformation to json in adapter
Refactor database interaction
Add v0.5.0 migration and refactor tests
Fix display code

Add but commented out beginning of revision display for debugging