Added core and coreFk. Removed foreign key index.
Implemented getting all logs
Logging in gets the appropriate user core