adjusted mongodb template and fixed account page