(#2283) - 'destroyed' event has correct db name

Incidentally this was also broken in Node due to the `./tmp` prefix.  When https://github.com/pouchdb/pouchdb/pull/2322 gets merged, it'd be nice to verify that the prefix is not emitted on the created or destroyed events, but looking at the code, it seems it shouldn't be.