Courgette flan with bacon