test chat and postgresql