Switch to use mongodb