Load database using AsyncTask only once by managing a flag in Shared Preferences