stats can lock/unlock issue in db and give feedback in json