always make give a name back
Add support for statistic element metadata in plugin

Save and load metadata (localized name, formatting) from database
TODO:
* Add accessors for metadata
* use metadata in commands instead of raw id's
* Add to SQLite files
Run cleanup on sourcecode