completed query for users in receiver in messagesforuser method