$sth = $dbh->query('INSERT INTO songs (title,artist) VALUES (?,?)', array($title, $artist));
$title = $dbh->quote($title);$title = strtr($title, array('_' => '\_', '%' => '\%'));$sth = $dbh->query("DELETE FROM songs WHERE title LIKE $title");