#remove entry
my $sth = $dbh->prepare(
"DELETE FROM borrower_password_recovery
WHERE uuid = ?
WHERE uuid = ? or NOW() > valid_until"
ORDER BY valid_until DESC LIMIT 1"
);
$sth->execute($uniqueKey);
-