 Complete the following phrase:  He was born as David to Prince Archil of Imereti, brother of King Solomon I of Imereti, by his wife Helene, daughter of King Heraclius II of Georgia. Solomon I, who died in 1784 without a male heir, named his nephew David as his successor. However, Solomons cousin David II prevented him, and another rival prince, from being crowned as king and occupied the throne, leading to a civil war. Heraclius II interfered on behalf of his grandson and sent in an army, defeating David II at the Battle of Matkhoji on June 11, 1789. David, son of Archil, was crowned as King of Imereti under the name of Solomon II, but David II continued his efforts to resume the throne until his final defeat in 1792. He ruled under the protection of his maternal grandfather, Heraclius II, and continued Solomon Is policy of restricting the powers of feudal aristocracy. In 1795, he and Heraclius fought with a small Imeretian force at the 