Revert "Merged with mongodb"

This reverts commit 7eb0b235dfc00d4dccb2dc7a517e3a776e500e6e.
added interface, close connectin