Fixes bugs with the way that shortReferenceID's are created so that it
works across all databases.
Updated Version 3.1.2.006