handled mongodb errors