Welcome to Mobileread, hopefully someone with more expertise than I will help you out with this question.
Moderator NoticeMoved out of Development sub-forum to the Library Management sub-forum. The description of the Library management sub-forum reads as follows:
All about viewing, adding, and exporting books; managing metadata; using templates; and understanding the calibre directory structure.
As a note to all folks there are sticky posts at the top of every calibre forum, these posts are an excellent source of information and at least the titles should be given a quick once over before posting to see if they might be of help.
At the top of the Development forum is the following sticky post,
PLEASE READ BEFORE POSTING - The purpose of this subforum, for some reason this post is often missed by folks posting in the development forum.