Fix Wikibase dependencies and add WikibaseDataModel, WikibaseDatabase and WikibaseQueryEngine

Change-Id: Ieb7ae194fa5bafb9db6b3a5dd36a0512b2003912