fix CRITICAL bug with loading static records where we detect if there's pre-existing data persisted in db file before attempting to load the static record... should be referencing entry.id not entity.id...