[DD-971] fixed functions.sql script
[DD-971] fixed functions.sql script

dswarm/dswarm,janpolowinski/dswarm,knutwalker/dswarm,dswarm/dswarm,knutwalker/dswarm,philbritton/dswarm,knutwalker/dswarm,dswarm/dswarm,zazi/dswarm,janpolowinski/dswarm,philbritton/dswarm,zazi/dswarm,zazi/dswarm,philbritton/dswarm