Postgresql Function Execute Sql Commands