function to retrieve db conn object from node