Fixed the controller resource lookup actions to work with Sequel.