Fixes #130

Moves the uuid generation event listener from the plugin to the DB API
to decouple test expectations from the plugin.
Merge pull request #132 from Cerberus98/issue130

Fixes #130