in reply to Database not storing data
2 comments
1) You aren't testing whether the tie is successful or not, so you may not open the db at some point, but go on happily processing your data.
2) I have found in situations, that sometimes (due to filesystem level buffering and such) that I need to untie and then retie a local db in order to view all the changes I have made this run.
Just my 2 cents.
/* And the Creator, against his better judgement, wrote man.c */