Powering a 5v circuit with car and backup lipo

So then this begs the question, what diode should I be using? Actually, I am trying to figure out how to hook it up. Don't I need a relay in there instead of a diode?