fix db for related_doc_plots