Postgresql Remove Duplicate Rows In Matlab