optimized chat mongoDB querys, fixed error with double-sessions in chat authentication