mongodb module added decrement function