Corrected friendsSQL and added functions to ManageFriendsActivity