added new handler for mongodb, try to switch back to only two for each database type later
getting equivalent document to a node