fixing db reader connection leak