refactor to use mongodb and stylus