 Complete the following phrase:  In 1813, as a result of the Treaty of Gulistan, the Russians gained control over southern Dagestan and most of what is the contemporary Azerbaijan Republic. The 1828 Treaty of Turkmenchay indefinitely consolidated Russian control over Dagestan and other areas where the Lezgins lived and removed Iran from the military equation. The Russian administration subsequently created the Kiurin Khanate, later to become the Kiurin district. Many Lezgins in Dagestan, however, participated in the 