Finalized backend firebase
Some fix