group chat using php and mongodb in backend