Close Database
This function closes a currently open database.
The operation involves closing all currently open database components.
If there are any currently open database components whose values have been
changed but not saved in the database, this function will fail and the database
will remain open until the changes are canceled or saved.