Fixed to use single db connection with pooling