Use ActiveRecord as ORM

To generate a migration use rake db:create_migration NAME=name
To migrate use rake db:migrate (development database)
To migrate to a specific environment db use RACK_ENV=environment rake
db:migrate, eg.: RACK_ENV=test rake db:migrate

Better connection.rb file
Specify db usage via RACK_ENV eg.:
RACK_ENV=production rackup

Starts Server with prod db connection specified in ./db/database.yml
file