Int32 -> long for large dbs

In large db's, it's common to have id's greater than Int32.MaxValue (especially if you're using HiLo to generate ids). This simple change turns the Int32's into longs.