Added primary and unique keys for each table to make sure there is no
overwriting