Fixed DB connection leak