in reply to Forking and database updates

If I understand what you are saying correctly you want the data that each child writes out to the "database" to be picked up in the parent when it re-reads the "database". If that is the case then the first thing you need to think of is that the data from the different child processes needs to be merged together so that all the changes are preserved, or write one file per child, and then read that file back in the parent.

Alternatively, if you want your child process changes to be reflected directly in the parent then you need to use some form of shared memory setup, or by having the parent read data from each of the child processes and update its data that way.

Michael