Fixing bug where you have to first close the dbHelper class and then open up the database