setup environment with mongodb