changed the JSON on "new"/"edit"
modified DB class
syntax fix