Postgresql Function Execute Sql Script