moving to mongodb, changing some other things