Adapted reading smyth grammar from json file to database model.