'Create a new db file.
self.connection must point to the opened and valid SQlite
database connection.'

def __create_db(self):

    self.ui._msg(('Creating    new    Local    Status    db    for    %s:%s' % (self.repository, self)))
    self.connection.executescript("\n                                CREATE    TABLE    metadata    (key    VARCHAR(50)    PRIMARY    KEY,    value    VARCHAR(128));\n                                INSERT    INTO    metadata    VALUES('db_version',    '2');\n                                CREATE    TABLE    status    (id    INTEGER    PRIMARY    KEY,    flags    VARCHAR(50),    mtime    INTEGER,    labels    VARCHAR(256));\n                                ")
    self.connection.commit()
    self._newfolder = True
