Fix Database::delete implementation error