Postgresql Index Array Javascript Push To Beginning