Issue 597: Export database as JSON

Would this not be it's own issue?