don't call open again if it's already opened

This gets rid of the exception when I pass in a mongoose db that's already opened.