Moved dbic searches out of the controller