I have learnt that I should only be connecting to mongodb once and not on every request.So I need to be able to share this connection across different requests. Is there any recommendation on how I could check if a connection is already established ?