Postgres Array Remove Python Method Chaining Javascript