cast :id to Int for postgres happiness
Merge pull request #53 from ckampfe/pg_casting

cast :id to Int for postgres happiness