use of Firebase api as backhend