Add DBALQueryInterface

Further todos relevant to this code:

* https://github.com/wmde/WikibaseDatabase/issues/30
* https://github.com/wmde/WikibaseDatabase/issues/59