add a equals() method in Palette Data class
refacotr on dbhelper with Singleton pattern
to fix the crash issue related to "attempt to reopen an already-closed
object", and change the database open/close logic to only open it once
when the main activity is created, and close it when the main activity
destroyed