export sql functions