change db from sqlite to mongodb