get Database
Gets the singleton instance of the NoteDatabase. If the instance doesn't exist, it creates one in a thread-safe manner.
Return
The singleton NoteDatabase instance.
Parameters
context
The application context, used to create the database.