most likely i think the issue is with the database replication that you did.
However, I don't know what the exact difference is, but my guess is that the scripts that create the new database do generate some type of id at some point - meaning, they don't just generate a bunch of empty tables.