Plug database connection leak