Use firebase sdk correctly in main tableview controllers