Postgresql Declare String Sql Functions Definition