Database interface refinements and support for adding to empty arrays, objects in JSON editor