AFAICT, a database can be created or deleted. A connection can be opened or closed, but a database cannot be opened or closed. It seems the "opening a database" algorithm should be "opening a connection" (even though it can also create a database) and "closing a database" should be "closing a connection".
(Already, "closing a database" is alternately called "closing a database connection", so that's another option.)
AFAICT, a database can be created or deleted. A connection can be opened or closed, but a database cannot be opened or closed. It seems the "opening a database" algorithm should be "opening a connection" (even though it can also create a database) and "closing a database" should be "closing a connection".
(Already, "closing a database" is alternately called "closing a database connection", so that's another option.)