Heavy flavour production at Hera