Fixing deprecated Firebase methods