(bug 44338) set the site internal id when loading sites from the db

Change-Id: Id0d76255e8f12ac7101b8334e3968cdbf4b04851
Merge "(bug 44338) set the site internal id when loading sites from the db"