Add support for Doctrine DBAL QueryBuilder based queries

Helpful if your're not using the full ORM and just need some simple pagination support