I've created a bit of a database hack that delays the DB open until a query is processed. Using this technique, I have cut the number of connections to the postgres database to just 2. I'm going to experiment with it for a while, but I think this might be a good thing to check in, what do you think?
It might also be useful for mysql, idunno.
---greg