adds _getJSON to db.insert and db.update so that json-able objects can be passed