More db resource leaks