Sqlite3 SQL logic error or missing database

Hello,
i can’t insert data into table. This is weird because everything else
works:
i can select data the database file I use;
i can insert data into required table if i connect to my sqlite3 file
from shell and insert data manually.
My database configuration:
production:
adapter: sqlite3
dbfile: db/production.sqlite3
.

File production.sqlite3 is chmod’ed 777 and chown’ed www:www. Nothing
helps!

I’m confused because on identical configuration on my laptop, except
that i run webrick everything works.

Server configuration
OS: freebsd 6.0
apache 2.0 , mod_fastcgi
ruby-sqlite3

:(. please help!