Check to see if a database exists.  For file based databases, pass in the full path for the file.  For server based databases, pass in the name of the database.
 
//Get the current instance of the helper 
IDataHelper db = DataHelper.SessionFactory();
 
bool exists = db.DatabaseExists("InvoiceDatabase");