how to handle database connection to a single database SQLite, or even Pg, MySQL, from a possibly-forking program. Do I initiate the DB connection from each forked worker? Or can I share parent's DB handle among the children/workers? The 1st option means that I connect/disconnect to the db each time a worker is spawned. How then is possible to keep a DB connection alive "for-ever"?