file upload now stores file in firebase db- updated hooks. refactoring for model code needs to be done