chat messages post and save to .json database