draft(jsondb): wrote a draft