Update firebase query