SQL: added leaks