Relevant experience but I did a mediocre job.. should I include it in the cover letter?
This may depend somewhat on your country and your discipline, but in general a PhD is a research degree.  Research experience is the absolute most important and relevant experience.  Any research experience at all is better than none. You should mention it.