Added AsyncTask to connect to DB in background