addition of PatPeter sql libraries