fix the issue that the palette data title would be null sometimes
UI: tweak the Palette Item title text view to be single line
fix the issue that if the current palette data has been added into local
db, it should not be added in again.