Firebase helper methods.