update to plugin v2

- we now just export a method with a name, executed in the context with this being the db
- due to it being on the prototype we only need to add it once