Friend id get and add function working - server side