A diabetic has apologised in court to the families of five people who died after he passed out behind the wheel and crashed into the front of a pub.