added checking friend list from database