The 45th Missouri was an infantry regiment, not cavalry. It's possible that your ancestor might have served in another unit prior to his service in the 45th. I also have some family members in the 45th (Company I); several of them had prior service in Enrolled Militia units.