CSI and SQL