Add close pooled db connection function.