Changed a printout statement in sql functions