Virginia to spend millions modernizing decades-old financial system