Added require rubygems (to work with Ruby 1.8) and changed SQLite for MySQL