fix pooled storage for h2 and hsqldb