it seems db should not be closed when using cached connections