Update gem source and dependencies.
Use an internal count for %d interpolation.

Relying on the db containing a numeric primary key is dumb.