Fixed local DB string max length problems due to SHA1 and deviceId.