SQL tools bits and pieces