After a few delete and insert, our sqlite3 was inflated from 300K to over 4MB. In Firefox sqlite3 manager, we open the db and compact it. There is no size change. Then we move the db file to a server which responses to sqlite3 command. We did (following post (by Lars Windolf) on VACUUM):
$sqlite3 /path/to/db/mydb.sqlite3 "VACUUM;"
However there is no size reduction at all. We are running out of ideas. What's the effective way doing compact of sqlite3?