Add support for database structure of wikihistory