Switch BigInteger to Number to support other DB drivers.