getDatabase

Gets the singleton instance of DunkBuzzDb.

This function creates a new instance of the database if it doesn't exist, otherwise, it returns the existing instance. It ensures that only one instance of the database is created and used throughout the application to prevent issues with concurrent access.

Return

The DunkBuzzDb singleton instance.

Parameters

context

The context used to create the database instance.