change engine to oo style
change engine to oo style
merge engine() and dsn() to init(). Mongodb::init() need to add ensure_index function