Change transaction promise to resolve snapshot instead of snapshot.val