no_database -> database.empty?
No need to require "rubygems"