Issue 597: Export database as JSON

In this case, can we leave this as is? We have that big request for configurable export, I think it makes more sense that I tackle this issue for both the exports at once.