Small fixes in SqlHelper