Updated to current standard write concerns
No need to call getError on writeResult. any errors for writeConcern level will throw exceptions and be caught in catch block