Problem updating sqlite database with active record

I am trying to use active record outside of rails using sqlite3-ruby (on OSX Tiger). This worked find with ruby 1.8.

After installing Ruby 1.9 using MacPorts (and installing rails and sqlite-ruby gem) I am getting an error (trace below) whenever I try to save changes (just retrieving works fine).

Any help would be appreciated.