added debugging to playerdb
added oldhag plugin (not finished)