Postgres Query Json Array Syntax Python