Postgresql Function Insert Into Mysql Multiple Rows To Single