we need to give battery supply to a device which required 5v /500 mAmp current , for this i planned to go for 6v/4.5 Ah battery but for this we need to charge the battery and even getting the output voltage inboth the situation even throughbattery as well as from mains also , is any buddy can suggest me the best circuit for this ?