Postgresql Data Types Array Cleaning