Adding an old custom version of sqltyped