add script to start mongodb
add pivotBy feature