Setting mongodb connection hooks to use the generic nosqldb name