Growing black holes and galaxies: black hole accretion versus star formation rate