build mongodb env