Add link from bills table to the pk of the latest version pk.
A lot of stuff to make the bill downloading work.