How to connect the battery as a backup power source