Use a promise for returning data from firebase