[2108] fixed sql connection leaks