in reply to flocking databases

What kind of database are you talking about, and what module(s) are you using?

RDBMS servers do their own locking. You need flock for roll-your-own flat text databases. BerkeleyDB and DBM-type implementations vary, often having some internal call for locking.

Check your db and module docs.

After Compline,
Zaxo