Fixed a database call in remove friend which led to incorrect associations.