exists
Checks whether a database of the given name exists in the given directory or not.
Return
true if exists, false otherwise.
Parameters
name
the database's name
directory
the path where the database is located. If null, the default db directory will be used.