Implementing Search

This is more copied almost verbatim from doctrine-dbal, we should push it back to jackalope //cc @dbu