Opens and creates the database, if desired.
See Implementation
The flags argument was ignored until July 29, 2022. (This function was originally written over 11 years ago, when sqlite3_open_v2 was not commonly supported on some distributions yet, and I didn't notice to revisit it for ages!)
Opens and creates the database, if desired.