fixed some bugs in social db handler (objects took very long to save) an...

...d commented cloud code. Also now friend requests are unique on the server