added missing postgres alter function statement and corrected alter function for new function signature