Implemented method replaceKeyValuePair and constructPubmedQueryList in databaseApi.py.