basic functions for database editor plugin

Fnishing up needs running move machine once, but code could be moved to client
Merge branch 'master' of github.com:po-devs/pokemon-online