Friends and groups being passed to the client

Packet changes, and requsts being managed
Minor fix in the DB layer