Change SQLiteOpenHelper to be a singleton

Sometimes it is necessary to get access to the SQLite database in an app. This change allows you to re-use the SQLiteOpenHelper class to get access to the database and avoid DatabaseLocked exceptions.