Refactored Firebase Manager