Two SQL utils