Ported r3919:3922,r3924,r3929,r3932 and r3934 to 0.10-stable (''database pool fixes'')
Authored by: cboos 2006-11-07
Parent: [r4166]
Child: [r4168]