public function deleteRecord($tablename, $where)
    {
        if (!empty($tablename) && !empty($where)) {
            $sql = "DELETE FROM ".$tablename." WHERE ".$where;
            return $this->write($sql, DatabaseInterface::AFFECTED_ROWS);
        }
    }