invite member & set socket id to user id from db