To close a database, select Close Database from the File menu. Once the database is closed the command will be grayed out.
You can also close the database by closing the Database Manager using the close button
Some commands require you to close a database before they will work, for instance, Repair Database.