pagination.rb and DB