Fix friendsprovider to use the new dbprovider abstraction.