update to work with latest dumps

* entity normalize to uppercase
* added a few languages code
* added a wikibase datatype url
* corrected bug due to badges introduction.