Added toFullJSON function to the message model, to fix the UPDATE error