cast :id to Int for postgres happiness

Fixes https://github.com/ckampfe/cork.g8/issues/52