'Create the database connection
TODO: finish (begin :) ) error catch and conf parameters...
Import to catch exception'

def connect_database(self):

    self.db = MySQLdb.connect(host=self.host, user=self.user, passwd=self.password, db=self.database, port=self.port)
    self.db.set_character_set(self.character_set)
    self.db_cursor = self.db.cursor()
    self.db_cursor.execute(('SET    NAMES    %s;' % self.character_set))
    self.db_cursor.execute(('SET    CHARACTER    SET    %s;' % self.character_set))
    self.db_cursor.execute(('SET    character_set_connection=%s;' % self.character_set))
