Postgresql Declare Array Variable Javascript Array Push Pop