working crud app in Angularjs with Firebase