change mongo to firebase