Added friends functionality to database.