changed post and delete functions to work with firebase