some code cleanup for the friends bulk add to the DB