Determine if a database exists