make db-save wait for firebase response before accepting input