Covert arrays to to postgres style arrays