Fixed an issue when the show was identified using a remote database, but the show is present in the local database, that code was not updated to return database ID as well.
Fixed a few null reference exceptions.