fixed local permissions problem for mongoose