The quark model, the baryon-baryon interaction and hypernuclei