If you have no experience with Calibre plugin development, you can refer to Calibre's development documentation to set up a Calibre development environment. Then, you can refer to the "Writing Your Own Plugin" tutorial to become familiar with the plugin development process. Eventually, you can consult the "API documentation for plugins", the "API documentation for the database interface", or even the Calibre's source code to access the functionalities you need.