Added getMessagesByUserID and getMessagesByUserName methods