Changed SITE_ID per database index.

Also fixed errors in admin page.