js module to extract texts from PDFs.
receive a database master url and return his read replica url based on paramters