Modified code so that database is queried just once when a document is read. Currently the read is being done in the constructor and then again inthe function.
Modified code so that database is queried just once when a document is read. Currently the read is being done in the constructor and then again in
the function.