got firebase db working with new command pattern. also refactored to use correct callback pattern to return success or not