Postgresql Function Insert Multiple Rows In Sql