try:
            self.db = MySQLdb.connect(host=self._db_host, port=self._db_port,
                                      user=self._db_username, passwd=self._db_pwd,
                                      db=self._db_name)
        except MySQLdb.Error as e: