Postgres Flatten Array Numpy Tutorial Notebook Paper