Changed to use long as type for big int.
Fix for getting generated key from insert operations.