Postgresql Create Array Numpy Python Code