<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def create(self, **kwargs):
        ''' Create a database in a connected InfluxDB instance

        **Configuration Parameters**

        database name
          The database name to create. Passed as either the config
          key **database.dbname** or the kwargs argument
          **database**. Defaults to **ait**.
        
        Raises:
            AttributeError:
                If a connection to the database doesn't exist
        '''
        dbname = ait.config.get('database.dbname', kwargs.get('database', 'ait'))

        if self._conn is None:
            raise AttributeError('Unable to create database. No connection to database exists.')

        self._conn.create_database(dbname)
        self._conn.switch_database(dbname)