Perovskite battery principle structure