need sql functions to check install