set a custom connection onto the DB query object. Related #319